summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2013-10-06 20:48:29 (GMT)
committerJonathan Nieder <jrnieder@gmail.com>2013-10-14 23:00:37 (GMT)
commit0b4dc66169da5040951c6f575978c4b962934f94 (patch)
tree28150646a5ed8b0484cc4e6847912462b2a93611 /config.c
parentb75a6ca7f3ab793e61b3229d29dceb7a4ec07cbc (diff)
downloadgit-0b4dc66169da5040951c6f575978c4b962934f94.zip
git-0b4dc66169da5040951c6f575978c4b962934f94.tar.gz
git-0b4dc66169da5040951c6f575978c4b962934f94.tar.bz2
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>
Diffstat (limited to 'config.c')
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index 6588cf5..e1d66a1 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;