volser-fcn-return-types-20090323
authorDerrick Brashear <shadow@dementia.org>
Mon, 23 Mar 2009 19:53:46 +0000 (19:53 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 23 Mar 2009 19:53:46 +0000 (19:53 +0000)
LICENSE IPL10

make internal functions have correct return types

src/volser/volmain.c

index f9d7e25..605ce9c 100644 (file)
@@ -101,29 +101,29 @@ afs_uint32 SHostAddrs[ADDRSPERSITE];
                       }
 
 #if defined(AFS_PTHREAD_ENV)
-char *
+int
 threadNum(void)
 {
     return pthread_getspecific(rx_thread_id_key);
 }
 #endif
 
-static afs_int32
+static void
 MyBeforeProc(struct rx_call *acall)
 {
     VTRANS_LOCK;
     runningCalls++;
     VTRANS_UNLOCK;
-    return 0;
+    return;
 }
 
-static afs_int32
+static void
 MyAfterProc(struct rx_call *acall, afs_int32 code)
 {
     VTRANS_LOCK;
     runningCalls--;
     VTRANS_UNLOCK;
-    return 0;
+    return;
 }
 
 /* Called every GCWAKEUP seconds to try to unlock all our partitions,