From 186458b11b090835fa793bcdbf6b5552b053276c Mon Sep 17 00:00:00 2001 From: Stephan Beyer Date: Thu, 24 Jul 2008 01:09:35 +0200 Subject: [PATCH] Make non-static functions, that may be static, static Signed-off-by: Stephan Beyer Signed-off-by: Junio C Hamano --- builtin-commit.c | 2 +- builtin-config.c | 2 +- builtin-for-each-ref.c | 2 +- builtin-merge.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/builtin-commit.c b/builtin-commit.c index 7434797d1..6a9dc0e30 100644 --- a/builtin-commit.c +++ b/builtin-commit.c @@ -876,7 +876,7 @@ static void print_summary(const char *prefix, const unsigned char *sha1) } } -int git_commit_config(const char *k, const char *v, void *cb) +static int git_commit_config(const char *k, const char *v, void *cb) { if (!strcmp(k, "commit.template")) return git_config_string(&template_file, k, v); diff --git a/builtin-config.c b/builtin-config.c index 0cf191a11..91fdc4985 100644 --- a/builtin-config.c +++ b/builtin-config.c @@ -145,7 +145,7 @@ free_strings: return ret; } -char *normalize_value(const char *key, const char *value) +static char *normalize_value(const char *key, const char *value) { char *normalized; diff --git a/builtin-for-each-ref.c b/builtin-for-each-ref.c index 76282ad79..445039e19 100644 --- a/builtin-for-each-ref.c +++ b/builtin-for-each-ref.c @@ -809,7 +809,7 @@ static struct ref_sort *default_sort(void) return sort; } -int opt_parse_sort(const struct option *opt, const char *arg, int unset) +static int opt_parse_sort(const struct option *opt, const char *arg, int unset) { struct ref_sort **sort_tail = opt->value; struct ref_sort *s; diff --git a/builtin-merge.c b/builtin-merge.c index 8825dcf8d..e78fa18b3 100644 --- a/builtin-merge.c +++ b/builtin-merge.c @@ -431,7 +431,7 @@ static void merge_name(const char *remote, struct strbuf *msg) sha1_to_hex(remote_head->sha1), remote); } -int git_merge_config(const char *k, const char *v, void *cb) +static int git_merge_config(const char *k, const char *v, void *cb) { if (branch && !prefixcmp(k, "branch.") && !prefixcmp(k + 7, branch) && -- 2.26.2