summaryrefslogtreecommitdiff
path: root/apply.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-03 17:10:45 (GMT)
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-03 17:10:45 (GMT)
commit6da4016aea2dc5bf311fea160bd8ef96ca82b999 (patch)
tree24f35b804286e5d0b86df471f5c48b339507f221 /apply.c
parent44c9e8594e7854fcead68ae0959e00137c2bbb59 (diff)
downloadgit-6da4016aea2dc5bf311fea160bd8ef96ca82b999.zip
git-6da4016aea2dc5bf311fea160bd8ef96ca82b999.tar.gz
git-6da4016aea2dc5bf311fea160bd8ef96ca82b999.tar.bz2
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 'apply.c')
-rw-r--r--apply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apply.c b/apply.c
index c81b0a2..701c01a 100644
--- a/apply.c
+++ b/apply.c
@@ -724,8 +724,8 @@ static int parse_chunk(char *buffer, unsigned long size, struct patch *patch)
return offset + hdrsize + patchsize;
}
-const char pluses[] = "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++";
-const char minuses[]= "----------------------------------------------------------------------";
+static const char pluses[] = "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++";
+static const char minuses[]= "----------------------------------------------------------------------";
static void show_stats(struct patch *patch)
{