From: しらいしななこ Date: Wed, 18 Jun 2008 23:21:11 +0000 (+0900) Subject: config.c: make git_env_bool() static X-Git-Tag: v1.6.0-rc0~230^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e4bffb5a1d9ab3c9c0ef0541a395d47516480d97;p=git.git config.c: make git_env_bool() static This function is not used by any other file. Signed-off-by: Nanako Shiraishi Signed-off-by: Junio C Hamano --- diff --git a/cache.h b/cache.h index feb49b788..814076300 100644 --- a/cache.h +++ b/cache.h @@ -734,7 +734,6 @@ extern int git_config_set_multivar(const char *, const char *, const char *, int extern int git_config_rename_section(const char *, const char *); extern const char *git_etc_gitconfig(void); extern int check_repository_format_version(const char *var, const char *value, void *cb); -extern int git_env_bool(const char *, int); extern int git_config_system(void); extern int git_config_global(void); extern int config_error_nonbool(const char *); diff --git a/config.c b/config.c index c2f2bbb00..04d97e3d0 100644 --- a/config.c +++ b/config.c @@ -549,7 +549,7 @@ const char *git_etc_gitconfig(void) return system_wide; } -int git_env_bool(const char *k, int def) +static int git_env_bool(const char *k, int def) { const char *v = getenv(k); return v ? git_config_bool(k, v) : def;