summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2011-05-24 22:49:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-05-24 23:20:48 (GMT)
commit3ddf0968c2f64a9f9fa6880d9c22d40459c88335 (patch)
tree3c0a3bcbbdd3cb2f9d83b9e6bed3879977b45a64 /config.c
parentdbdf5854b21852676de6a8baf052147217ce809b (diff)
downloadgit-3ddf0968c2f64a9f9fa6880d9c22d40459c88335.zip
git-3ddf0968c2f64a9f9fa6880d9c22d40459c88335.tar.gz
git-3ddf0968c2f64a9f9fa6880d9c22d40459c88335.tar.bz2
config: make environment parsing routines static
Nobody outside of git_config_from_parameters should need to use the GIT_CONFIG_PARAMETERS parsing functions, so let's make them private. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.c b/config.c
index c431f41..230fe2c 100644
--- a/config.c
+++ b/config.c
@@ -48,7 +48,7 @@ void git_config_push_parameter(const char *text)
strbuf_release(&env);
}
-int git_config_parse_parameter(const char *text)
+static int git_config_parse_parameter(const char *text)
{
struct config_item *ct;
struct strbuf tmp = STRBUF_INIT;
@@ -75,7 +75,7 @@ int git_config_parse_parameter(const char *text)
return 0;
}
-int git_config_parse_environment(void) {
+static int git_config_parse_environment(void) {
const char *env = getenv(CONFIG_DATA_ENVIRONMENT);
char *envw;
const char **argv = NULL;