config.c: make git_parse_long() static
PATCH 1/1 config.c: make git_parse_long() static
This function is not used in any other file.
Signed-off-by Nanako Shiraishi <[email protected]>
--- cache.h | 1 - config.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-)
cache.h +0 -1
@@ -742,7 +742,6 @@ typedef int (*config_fn_t)(const char *, const char *, void *);extern int git_default_config (const char *,const char *,void *);extern int git_config_from_file (config_fn_t fn,const char *,void *);extern int git_config (config_fn_t fn,void *); -extern int git_parse_long (const char *,long *);extern int git_parse_ulong (const char *,unsigned long *);extern int git_config_int (const char *,const char *);extern unsigned long git_config_ulong (const char *,const char *);
config.c +2 -2
@@ -255,7 +255,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;
@@ -291,7 +291,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;
Signature · 5 lines
1.6.0.2 -- Nanako Shiraishi http://ivory.ap.teacup.com/nanako3/