Skip to content

Commit

Permalink
config.c: make git_parse_long() static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nanako Shiraishi authored and Shawn O. Pearce committed Oct 3, 2008
1 parent 7996ff3 commit 0433bcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,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 *);
Expand Down
4 changes: 2 additions & 2 deletions config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0433bcd

Please sign in to comment.