Index: libcio/clusmap.c
===================================================================
--- libcio/clusmap.c	(revision 4f508e6879b14fc73a3587ac6cd023ca6262eae8)
+++ libcio/clusmap.c	(revision df097bf59e892ec2e9bbb4a5696044afa1d5bf16)
@@ -346,5 +346,5 @@
 	if (arg EQ _noper) {
 
-		ds = (struct device *)chantab[fp->_unit].c_arg->d_name;
+		ds = ((struct devtabl *)chantab[fp->_unit].c_arg)->d_name;
 		printf(" is a device:  [%s]\n", ds);
 
Index: libcio/fprintf.c
===================================================================
--- libcio/fprintf.c	(revision 4f508e6879b14fc73a3587ac6cd023ca6262eae8)
+++ libcio/fprintf.c	(revision df097bf59e892ec2e9bbb4a5696044afa1d5bf16)
@@ -15,4 +15,6 @@
 extern	int	aputc();
 
+static	int	fpsub();
+
 int
 fprintf(stream, fmt, va_alist)
@@ -22,5 +24,4 @@
 {
 	register int count;
-	int fpsub();
 	va_list aptr;
 
Index: libcio/fseek.c
===================================================================
--- libcio/fseek.c	(revision 4f508e6879b14fc73a3587ac6cd023ca6262eae8)
+++ libcio/fseek.c	(revision df097bf59e892ec2e9bbb4a5696044afa1d5bf16)
@@ -41,5 +41,5 @@
 	lr = lseek(fp->_unit, pos, mode);
 
-	if (chantab[fp->_unit].c_arg->modefl & FC_EOF)
+	if (((struct fcb *)chantab[fp->_unit].c_arg)->modefl & FC_EOF)
 		fp->_flags |= _EOF;
 
