Skip to content

Commit 0b4dc66

Browse files
Ramsay Jonesjrn
authored andcommitted
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 <[email protected]> Explained-by: Jeff King <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]>
1 parent b75a6ca commit 0b4dc66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ static int git_parse_signed(const char *value, intmax_t *ret, intmax_t max)
498498
return 0;
499499
}
500500

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)
502502
{
503503
if (value && *value) {
504504
char *end;

0 commit comments

Comments
 (0)