DEVEL15-vldb-check-dont-return-int-from-void-20071211

LICENSE IPL10

void functions shouldn't return 0


(cherry picked from commit 2e057314d957a8854ee3c912715a916c3f002863)
This commit is contained in:
Mike Meffie 2007-12-11 20:43:50 +00:00 committed by Derrick Brashear
parent c2db2e5c7c
commit a0abdcd99b

View File

@ -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