From 6c7b31c61c703778d45e5ccd6803854fc08e17ca Mon Sep 17 00:00:00 2001 From: Mike Meffie Date: Tue, 11 Dec 2007 20:45:29 +0000 Subject: [PATCH] STABLE14-vldb-check-dont-return-int-from-void-20071211 LICENSE IPL10 void functions shouldn't return 0 (cherry picked from commit 2e057314d957a8854ee3c912715a916c3f002863) --- src/vlserver/vldb_check.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/vlserver/vldb_check.c b/src/vlserver/vldb_check.c index 73a57d514..1c6567d89 100644 --- a/src/vlserver/vldb_check.c +++ b/src/vlserver/vldb_check.c @@ -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 -- 2.39.5