From: Ramsay Jones Date: Sun, 6 Oct 2013 20:48:29 +0000 (+0100) Subject: config.c: mark file-local function static X-Git-Tag: rs/ref-transaction-1~604 X-Git-Url: https://repo.or.cz/w/git/jrn.git/commitdiff_plain/0b4dc66169da5040951c6f575978c4b962934f94 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 Explained-by: Jeff King Signed-off-by: Jonathan Nieder --- diff --git a/config.c b/config.c index 6588cf579f..e1d66a145b 100644 --- a/config.c +++ b/config.c @@ -498,7 +498,7 @@ static int git_parse_signed(const char *value, intmax_t *ret, intmax_t max) return 0; } -int git_parse_unsigned(const char *value, uintmax_t *ret, uintmax_t max) +static int git_parse_unsigned(const char *value, uintmax_t *ret, uintmax_t max) { if (value && *value) { char *end;