Skip to content

Commit

Permalink
config.c: make git_env_bool() static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
しらいしななこ authored and Junio C Hamano committed Jun 20, 2008
1 parent 78d0f5d commit e4bffb5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 *);
Expand Down
2 changes: 1 addition & 1 deletion config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e4bffb5

Please sign in to comment.