diff options
author | Stephen Boyd <bebarino@gmail.com> | 2011-04-03 00:06:54 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-04-03 10:14:53 -0700 |
commit | 1e4cd68c0041d4c6aaa0562a4528a030944d37ee (patch) | |
tree | 05d5ec9abbd6b79aa4e180b385188e726c21f6c6 /pkt-line.c | |
parent | Update release notes (diff) | |
download | tgif-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 'pkt-line.c')
-rw-r--r-- | pkt-line.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkt-line.c b/pkt-line.c index cd1bd26413..5a04984ea3 100644 --- a/pkt-line.c +++ b/pkt-line.c @@ -1,7 +1,7 @@ #include "cache.h" #include "pkt-line.h" -const char *packet_trace_prefix = "git"; +static const char *packet_trace_prefix = "git"; static const char trace_key[] = "GIT_TRACE_PACKET"; void packet_trace_identity(const char *prog) |