summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-03 10:10:45 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-03 10:10:45 -0700
commit6da4016aea2dc5bf311fea160bd8ef96ca82b999 (patch)
tree24f35b804286e5d0b86df471f5c48b339507f221 /sha1_file.c
parent44c9e8594e7854fcead68ae0959e00137c2bbb59 (diff)
downloadgit-6da4016aea2dc5bf311fea160bd8ef96ca82b999.tar.gz
Fix sparse warnings.
Mainly making a lot of local functions and variables be marked "static", but there was a "zero as NULL" warning in there too.
Diffstat (limited to 'sha1_file.c')
-rw-r--r--sha1_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_file.c b/sha1_file.c
index a4ed4f9cdc..b18e467d8c 100644
--- a/sha1_file.c
+++ b/sha1_file.c
@@ -531,7 +531,7 @@ int unpack_sha1_header(z_stream *stream, void *map, unsigned long mapsize, void
return inflate(stream, 0);
}
-void *unpack_sha1_rest(z_stream *stream, void *buffer, unsigned long size)
+static void *unpack_sha1_rest(z_stream *stream, void *buffer, unsigned long size)
{
int bytes = strlen(buffer) + 1;
unsigned char *buf = xmalloc(1+size);