summaryrefslogtreecommitdiff
path: root/receive-pack.c
diff options
context:
space:
mode:
authorLibravatar Linus Torvalds <torvalds@g5.osdl.org>2005-07-03 10:10:45 -0700
committerLibravatar Linus Torvalds <torvalds@g5.osdl.org>2005-07-03 10:10:45 -0700
commit6da4016aea2dc5bf311fea160bd8ef96ca82b999 (patch)
tree24f35b804286e5d0b86df471f5c48b339507f221 /receive-pack.c
parentFix up header file dependencies and add sparse checking rules (diff)
downloadtgif-6da4016aea2dc5bf311fea160bd8ef96ca82b999.tar.xz
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 'receive-pack.c')
-rw-r--r--receive-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/receive-pack.c b/receive-pack.c
index d05f7d5ec4..dfa7cd1d0a 100644
--- a/receive-pack.c
+++ b/receive-pack.c
@@ -25,7 +25,7 @@ struct command {
char ref_name[0];
};
-struct command *commands = NULL;
+static struct command *commands = NULL;
static int is_all_zeroes(const char *hex)
{