]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-vldb-check-dont-return-int-from-void-20071211
authorMike Meffie <mmeffie@sinenomine.net>
Tue, 11 Dec 2007 20:45:29 +0000 (20:45 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 11 Dec 2007 20:45:29 +0000 (20:45 +0000)
LICENSE IPL10

void functions shouldn't return 0

(cherry picked from commit 2e057314d957a8854ee3c912715a916c3f002863)

src/vlserver/vldb_check.c

index 73a57d514451ba2d82d03d7f2ad4c2af09239d08..1c6567d89703ef1c999fc092b2c3143dd5ecc985 100644 (file)
@@ -258,7 +258,7 @@ readheader(struct vlheader *headerp)
     if (headerp->vital_header.headersize != sizeof(*headerp))
        printf("Header reports its size as %d (should be %d)\n",
               headerp->vital_header.headersize, sizeof(*headerp));
-    return 0;
+    return;
 }
 
 void
@@ -315,7 +315,7 @@ readMH(afs_int32 addr, struct extentaddr *mhblockP)
        for (j = 0; j < VL_MAXIPADDRS_PERMH; j++)
            e->ex_addrs[j] = ntohl(e->ex_addrs[j]);
     }
-    return 0;
+    return;
 }
 
 void
@@ -394,7 +394,7 @@ readentry(afs_int32 addr, struct nvlentry *vlentryp, afs_int32 *type)
            }
        }
     }
-    return 0;
+    return;
 }
 
 void
@@ -689,7 +689,7 @@ FollowNameHash(struct vlheader *header)
            ("%d entries in name hash, longest is %d, shortest is %d, average length is %f\n",
             count, longest, shortest, ((float)count / (float)HASHSIZE));
     }
-    return 0;
+    return;
 }
 
 /*
@@ -765,7 +765,7 @@ FollowIdHash(struct vlheader *header)
                 ((float)count / (float)HASHSIZE));
        }
     }
-    return 0;
+    return;
 }
 
 /*
@@ -810,7 +810,7 @@ FollowFreeChain(struct vlheader *header)
     }
     if (verbose)
        printf("%d entries on free chain\n", count);
-    return 0;
+    return;
 }
 
 /*
@@ -1021,7 +1021,7 @@ CheckIpAddrs(struct vlheader *header)
        printf("%d simple entries, %d multihomed entries, Total = %d\n",
               regentries, mhentries, mhentries + regentries);
     }
-    return 0;
+    return;
 }
 
 void