Skip to content

Commit 52fae7d

Browse files
MadCodergitster
authored andcommitted
Missing statics.
Signed-off-by: Pierre Habouzit <madcoder@debian.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent e1944f4 commit 52fae7d

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

builtin-branch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ static int parse_branch_color_slot(const char *var, int ofs)
5555
die("bad config variable '%s'", var);
5656
}
5757

58-
int git_branch_config(const char *var, const char *value)
58+
static int git_branch_config(const char *var, const char *value)
5959
{
6060
if (!strcmp(var, "color.branch")) {
6161
branch_use_color = git_config_colorbool(var, value);
@@ -72,7 +72,7 @@ int git_branch_config(const char *var, const char *value)
7272
return git_default_config(var, value);
7373
}
7474

75-
const char *branch_get_color(enum color_branch ix)
75+
static const char *branch_get_color(enum color_branch ix)
7676
{
7777
if (branch_use_color)
7878
return branch_colors[ix];

builtin-revert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ static char *get_oneline(const char *message)
107107
return result;
108108
}
109109

110-
char *get_encoding(const char *message)
110+
static char *get_encoding(const char *message)
111111
{
112112
const char *p = message, *eol;
113113

daemon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ static void parse_extra_args(struct interp *table, char *extra_args, int buflen)
439439
}
440440
}
441441

442-
void fill_in_extra_table_entries(struct interp *itable)
442+
static void fill_in_extra_table_entries(struct interp *itable)
443443
{
444444
char *hp;
445445

wt-status.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ static void wt_read_cache(struct wt_status *s)
198198
read_cache();
199199
}
200200

201-
void wt_status_print_initial(struct wt_status *s)
201+
static void wt_status_print_initial(struct wt_status *s)
202202
{
203203
int i;
204204
char buf[PATH_MAX];

xdiff/xemit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ static void xdl_find_func(xdfile_t *xf, long i, char *buf, long sz, long *ll) {
9999
}
100100

101101

102-
int xdl_emit_common(xdfenv_t *xe, xdchange_t *xscr, xdemitcb_t *ecb,
103-
xdemitconf_t const *xecfg) {
102+
static int xdl_emit_common(xdfenv_t *xe, xdchange_t *xscr, xdemitcb_t *ecb,
103+
xdemitconf_t const *xecfg) {
104104
xdfile_t *xdf = &xe->xdf1;
105105
const char *rchg = xdf->rchg;
106106
long ix;

0 commit comments

Comments
 (0)