Browse Source

Make non-static functions, that may be static, static

Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Stephan Beyer 17 years ago committed by Junio C Hamano
parent
commit
186458b11b
  1. 2
      builtin-commit.c
  2. 2
      builtin-config.c
  3. 2
      builtin-for-each-ref.c
  4. 2
      builtin-merge.c

2
builtin-commit.c

@ -876,7 +876,7 @@ static void print_summary(const char *prefix, const unsigned char *sha1) @@ -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);

2
builtin-config.c

@ -145,7 +145,7 @@ free_strings: @@ -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;


2
builtin-for-each-ref.c

@ -809,7 +809,7 @@ static struct ref_sort *default_sort(void) @@ -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;

2
builtin-merge.c

@ -431,7 +431,7 @@ static void merge_name(const char *remote, struct strbuf *msg) @@ -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) &&

Loading…
Cancel
Save