aboutsummaryrefslogtreecommitdiff
path: root/builtin/index-pack.c
diff options
context:
space:
mode:
authorStephen Boyd <bebarino@gmail.com>2011-04-03 00:06:54 -0700
committerJunio C Hamano <gitster@pobox.com>2011-04-03 10:14:53 -0700
commit1e4cd68c0041d4c6aaa0562a4528a030944d37ee (patch)
tree05d5ec9abbd6b79aa4e180b385188e726c21f6c6 /builtin/index-pack.c
parentcb35c0646d2b6a911f516ac2e45d2e23b038f646 (diff)
downloadgit-1e4cd68c0041d4c6aaa0562a4528a030944d37ee.tar.gz
git-1e4cd68c0041d4c6aaa0562a4528a030944d37ee.tar.xz
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 <bebarino@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/index-pack.c')
-rw-r--r--builtin/index-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/index-pack.c b/builtin/index-pack.c
index 5a67c8181..31f001f10 100644
--- a/builtin/index-pack.c
+++ b/builtin/index-pack.c
@@ -294,7 +294,7 @@ static void *unpack_raw_entry(struct object_entry *obj, union delta_base *delta_
void *data;
obj->idx.offset = consumed_bytes;
- input_crc32 = crc32(0, Z_NULL, 0);
+ input_crc32 = crc32(0, NULL, 0);
p = fill(1);
c = *p;