path: root/pack-check.c
diff options
authorStephen Boyd <>2011-04-03 07:06:54 (GMT)
committerJunio C Hamano <>2011-04-03 17:14:53 (GMT)
commit1e4cd68c0041d4c6aaa0562a4528a030944d37ee (patch)
tree05d5ec9abbd6b79aa4e180b385188e726c21f6c6 /pack-check.c
parentcb35c0646d2b6a911f516ac2e45d2e23b038f646 (diff)
sparse: Fix errors and silence warnings
* load_file() returns a void pointer but is using 0 for the return value * builtin/receive-pack.c forgot to include builtin.h * packet_trace_prefix can be marked static * ll_merge takes a pointer for its last argument, not an int * crc32 expects a pointer as the second argument but Z_NULL is defined to be 0 (see 38f4d13 sparse fix: Using plain integer as NULL pointer, 2006-11-18 for more info) Signed-off-by: Stephen Boyd <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'pack-check.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/pack-check.c b/pack-check.c
index c3bf21d..a1a5216 100644
--- a/pack-check.c
+++ b/pack-check.c
@@ -23,7 +23,7 @@ int check_pack_crc(struct packed_git *p, struct pack_window **w_curs,
off_t offset, off_t len, unsigned int nr)
const uint32_t *index_crc;
- uint32_t data_crc = crc32(0, Z_NULL, 0);
+ uint32_t data_crc = crc32(0, NULL, 0);
do {
unsigned int avail;