summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7996ff3)
raw | patch | inline | side by side (parent: 7996ff3)
author | Nanako Shiraishi <nanako3@lavabit.com> | |
Thu, 2 Oct 2008 10:14:27 +0000 (19:14 +0900) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 3 Oct 2008 01:03:35 +0000 (18:03 -0700) |
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>
Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
cache.h | patch | blob | history | |
config.c | patch | blob | history |
index 99af83a0479ef472078afcd288b1f6ba6283a2f0..7027c896bf37cd555552abb67f165dea7389791f 100644 (file)
--- a/cache.h
+++ b/cache.h
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 *);
diff --git a/config.c b/config.c
index 1d3012047d7b3c7f2ad1ba6aea4884954b9d4bfe..18d305c890d3f4ba00962cfa4033ff9ed68cf95b 100644 (file)
--- a/config.c
+++ b/config.c
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;
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;