Skip to content

Commit 45635ec

Browse files
pcloudsgitster
authored andcommitted
apply.h: drop extern on func declaration
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 1d89318 commit 45635ec

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

apply.h

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@ struct apply_state {
111111
int applied_after_fixing_ws;
112112
};
113113

114-
extern int apply_parse_options(int argc, const char **argv,
115-
struct apply_state *state,
116-
int *force_apply, int *options,
117-
const char * const *apply_usage);
118-
extern int init_apply_state(struct apply_state *state,
119-
const char *prefix);
120-
extern void clear_apply_state(struct apply_state *state);
121-
extern int check_apply_state(struct apply_state *state, int force_apply);
114+
int apply_parse_options(int argc, const char **argv,
115+
struct apply_state *state,
116+
int *force_apply, int *options,
117+
const char * const *apply_usage);
118+
int init_apply_state(struct apply_state *state,
119+
const char *prefix);
120+
void clear_apply_state(struct apply_state *state);
121+
int check_apply_state(struct apply_state *state, int force_apply);
122122

123123
/*
124124
* Some aspects of the apply behavior are controlled by the following
@@ -127,9 +127,8 @@ extern int check_apply_state(struct apply_state *state, int force_apply);
127127
#define APPLY_OPT_INACCURATE_EOF (1<<0) /* accept inaccurate eof */
128128
#define APPLY_OPT_RECOUNT (1<<1) /* accept inaccurate line count */
129129

130-
extern int apply_all_patches(struct apply_state *state,
131-
int argc,
132-
const char **argv,
133-
int options);
130+
int apply_all_patches(struct apply_state *state,
131+
int argc, const char **argv,
132+
int options);
134133

135134
#endif

0 commit comments

Comments
 (0)