From 0b4dc66169da5040951c6f575978c4b962934f94 Mon Sep 17 00:00:00 2001 From: Ramsay Jones Date: Sun, 6 Oct 2013 21:48:29 +0100 Subject: [PATCH] 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 --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.11.4.GIT