Skip to contentSkip to conversation

config.c: make git_env_bool() static

PATCH New しらいしななこ 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config.c: make git_env_bool() static

This function is not used by any other file.

---
 cache.h  |    1 -
 config.c |    2 +-
 2 files changed, 1 insertions(+), 2 deletions(-)
cache.h +0 -1
index 81b7e17..a82e493 100644
@@ -735,7 +735,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 *);
config.c +1 -1
index c2f2bbb..04d97e3 100644
@@ -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;
Signature · 1 line
1.5.5.4