diff options
author | しらいしななこ <nanako3@lavabit.com> | 2008-06-19 01:21:11 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-06-20 02:07:41 +0200 |
commit | e4bffb5a1d9ab3c9c0ef0541a395d47516480d97 (patch) | |
tree | ba11f4fc978241009669881a9aa4c5c96f594d3b | |
parent | environment.c: remove unused function (diff) | |
download | git-e4bffb5a1d9ab3c9c0ef0541a395d47516480d97.tar.xz git-e4bffb5a1d9ab3c9c0ef0541a395d47516480d97.zip |
config.c: make git_env_bool() static
This function is not used by any other file.
Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | cache.h | 1 | ||||
-rw-r--r-- | config.c | 2 |
2 files changed, 1 insertions, 2 deletions
@@ -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 *); @@ -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; |