void-return-casts-20080409
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Wed, 9 Apr 2008 17:39:36 +0000 (17:39 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 9 Apr 2008 17:39:36 +0000 (17:39 +0000)
LICENSE IPL10

do apporpriate casts for void returns to placate irix cc

src/bucoord/dump.c
src/butc/lwps.c
src/butc/tcudbprocs.c
src/rx/rx_kcommon.c
src/ubik/beacon.c
src/ubik/recovery.c

index 36fc6ac..0357888 100644 (file)
@@ -225,7 +225,7 @@ bc_DmpRstStart(void *param)
        free(tdump->portOffset);
     tdump->flags &= ~BC_DI_INUSE;
 
-    return code;
+    return (void *)code;
 }
 
 /* bc_StartDmpRst
index 2096845..8c7eb3c 100644 (file)
@@ -1920,7 +1920,7 @@ Restorer(void *param) {
 
     FreeNode(taskId);
     LeaveDeviceQueue(deviceLatch);
-    return (code);
+    return (void *)(code);
 }
 
 /* this is just scaffolding, creates new tape label with name <tapeName> */
@@ -2282,7 +2282,7 @@ Labeller(void *param)
 
     free(labelIfPtr);
     LeaveDeviceQueue(deviceLatch);
-    return (code);
+    return (void *)(code);
 }
 
 /* PrintTapeLabel
index 48f6bf8..3b1bf85 100644 (file)
@@ -744,7 +744,7 @@ saveDbToTape(void *param)
 
     free(saveDbIfPtr);
     LeaveDeviceQueue(deviceLatch);
-    return (code);
+    return (void *)(code);
 }
 
 struct rstTapeInfo {
index f74f7de..5f208d1 100644 (file)
@@ -291,6 +291,8 @@ rx_ServerProc(void *unused)
 #ifdef RX_ENABLE_LOCKS
     AFS_GLOCK();
 #endif /* RX_ENABLE_LOCKS */
+
+    return NULL;
 }
 #endif /* !UKERNEL */
 
index 937d54d..a507a8c 100644 (file)
@@ -465,6 +465,7 @@ ubeacon_Interact(void *dummy)
        }
 
     }                          /* while loop */
+    return NULL;
 }
 
 /* 
index 6b346d1..b0ba2fb 100644 (file)
@@ -832,6 +832,7 @@ urecovery_Interact(void *dummy)
                urecovery_state |= UBIK_RECSENTDB;
        }
     }
+    return NULL;
 }
 
 /*