config.c: mark file-local function static

Commit 7192777 refactors git_parse_ulong, which is public, into a more generic function. But since we kept the git_parse_ulong wrapper, only that part needs to be public; nobody outside the file calls the lower-level git_parse_unsigned. Noticed with sparse. ("'git_parse_unsigned' was not declared. Should it be static?") Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Explained-by: Jeff King <peff@peff.net> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>

Ramsay Jones committed Oct 6, 2013 at 21:48 UTC 0b4dc66169da5040951c6f575978c4b962934f94
1 file changed +1 -1
config.c
+1 -1
@@ -498,7 +498,7 @@ static int git_parse_signed(const char *value, intmax_t *ret, intmax_t max)
498 return 0;
499 }
500
501 -int git_parse_unsigned(const char *value, uintmax_t *ret, uintmax_t max)
501 +static int git_parse_unsigned(const char *value, uintmax_t *ret, uintmax_t max)
502 {
503 if (value && *value) {
504 char *end;