Index: libcio/filesys.c
===================================================================
--- libcio/filesys.c	(revision add86dd394806e927f8a98a575a3c5c10e718ab7)
+++ libcio/filesys.c	(revision 4422c8e396b569683e41183b361494ba069268cd)
@@ -684,5 +684,5 @@
 		_dirin = FALSE;
 
-		if ((struct bpb *)0L EQ (_thebpb = BIOS(B_GBPB, 0))) {
+		if (NULL EQ (_thebpb = (struct bpb *)BIOS(B_GBPB, 0))) {
 
 			errno = EIO;	/* couldn't read the BPB */
Index: libcio/open.c
===================================================================
--- libcio/open.c	(revision add86dd394806e927f8a98a575a3c5c10e718ab7)
+++ libcio/open.c	(revision 4422c8e396b569683e41183b361494ba069268cd)
@@ -19,8 +19,8 @@
 static struct devtabl devtabl[] = {
 
-	{ "con:", &condev,  2 },	/* console device */
-	{ "CON:", &condev,  2 },
-
-	{      0, &filedev, 0 }		/* this MUST be the last entry */
+	{ "con:", &condev,  (io_arg)2 },	/* console device */
+	{ "CON:", &condev,  (io_arg)2 },
+
+	{      0, &filedev,      NULL }		/* this MUST be the last entry */
 };
 
Index: ram/dcopy.c
===================================================================
--- ram/dcopy.c	(revision add86dd394806e927f8a98a575a3c5c10e718ab7)
+++ ram/dcopy.c	(revision 4422c8e396b569683e41183b361494ba069268cd)
@@ -40,5 +40,5 @@
 	mphead.F_Symtab = 0L;			/* symbol table length */
 	mphead.F_Res1   = 0L;			/* reserved area #1 */
-	mphead.F_Res2   = &Lo_RAM;		/* text base */
+	mphead.F_Res2   = (int32_t)&Lo_RAM;	/* text base */
 	mphead.F_Res3   = 0xFFFF;		/* flag word */
 
Index: ram/sedump.c
===================================================================
--- ram/sedump.c	(revision add86dd394806e927f8a98a575a3c5c10e718ab7)
+++ ram/sedump.c	(revision 4422c8e396b569683e41183b361494ba069268cd)
@@ -10,5 +10,6 @@
 int8_t	*A6PTR = 0L;		/* traceback a6 starting address */
 int8_t	*A7PTR = 0L;		/* traceback a7 starting address */
-int8_t	*A7TOP = 0x000FFFFFL;	/* traceback stack top */
+int8_t	*A7TOP = (int8_t *)0x000FFFFFL;
+				/* traceback stack top */
 
 int16_t	SCnumv = 0;		/* voice for SCvoice()  to dump (0..11) */
@@ -406,5 +407,5 @@
 
 		printf("Stack dump:  $%08lX to $%08lX\n\n", A7PTR, A7TOP);
-		mdump(A7PTR, A7TOP, A7PTR);
+		mdump(A7PTR, A7TOP, (int32_t)A7PTR);
 		printf("\n\n");
 		printf("Stack traceback:  from A6 = $%08lX\n\n", A6PTR);
@@ -423,5 +424,5 @@
 	while (cura6) {
 
-		olda6 = *cura6;
+		olda6 = (int32_t *)*cura6;
 
 		printf("$%08lX:  $%08lX  $%08lX\n",
