From a0abdcd99bdf691a61059eafb49dc64598fabd67 Mon Sep 17 00:00:00 2001 From: Mike Meffie Date: Tue, 11 Dec 2007 20:43:50 +0000 Subject: [PATCH] DEVEL15-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 619fd838d0..10762ba391 100644 --- a/src/vlserver/vldb_check.c +++ b/src/vlserver/vldb_check.c @@ -242,7 +242,7 @@ readheader(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; } readMH(addr, mhblockP) @@ -267,7 +267,7 @@ readMH(addr, mhblockP) for (j = 0; j < VL_MAXIPADDRS_PERMH; j++) e->ex_addrs[j] = ntohl(e->ex_addrs[j]); } - return 0; + return; } readentry(addr, vlentryp, type) @@ -348,7 +348,7 @@ readentry(addr, vlentryp, type) } } } - return 0; + return; } void @@ -565,7 +565,7 @@ FollowNameHash(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; } /* @@ -639,7 +639,7 @@ FollowIdHash(header) ((float)count / (float)HASHSIZE)); } } - return 0; + return; } /* @@ -684,7 +684,7 @@ FollowFreeChain(header) } if (verbose) printf("%d entries on free chain\n", count); - return 0; + return; } /* @@ -895,7 +895,7 @@ CheckIpAddrs(header) printf("%d simple entries, %d multihomed entries, Total = %d\n", regentries, mhentries, mhentries + regentries); } - return 0; + return; } int