config.c: make git_parse_long() static

This function is not used in any other file.

Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Nanako Shiraishi
2008-10-02 19:14:27 +09:00
committed by Shawn O. Pearce
parent 7996ff335e
commit 0433bcd9f0
2 changed files with 2 additions and 3 deletions

View File

@ -274,7 +274,7 @@ static int parse_unit_factor(const char *end, unsigned long *val)
return 0;
}
int git_parse_long(const char *value, long *ret)
static int git_parse_long(const char *value, long *ret)
{
if (value && *value) {
char *end;
@ -310,7 +310,7 @@ static void die_bad_config(const char *name)
int git_config_int(const char *name, const char *value)
{
long ret;
long ret = 0;
if (!git_parse_long(value, &ret))
die_bad_config(name);
return ret;