Skip to content

Commit 07a7d65

Browse files
committed
grep.c: mark private file-scope symbols as static
Signed-off-by: Junio C Hamano <[email protected]>
1 parent a23e313 commit 07a7d65

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

grep.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
#include "userdiff.h"
44
#include "xdiff-interface.h"
55

6+
static int grep_source_load(struct grep_source *gs);
7+
static int grep_source_is_binary(struct grep_source *gs);
8+
9+
610
static struct grep_pat *create_grep_pat(const char *pat, size_t patlen,
711
const char *origin, int no,
812
enum grep_pat_token t,
@@ -403,7 +407,7 @@ static void dump_grep_expression_1(struct grep_expr *x, int in)
403407
}
404408
}
405409

406-
void dump_grep_expression(struct grep_opt *opt)
410+
static void dump_grep_expression(struct grep_opt *opt)
407411
{
408412
struct grep_expr *x = opt->pattern_expression;
409413

grep.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,10 @@ struct grep_source {
149149

150150
void grep_source_init(struct grep_source *gs, enum grep_source_type type,
151151
const char *name, const void *identifier);
152-
int grep_source_load(struct grep_source *gs);
153152
void grep_source_clear_data(struct grep_source *gs);
154153
void grep_source_clear(struct grep_source *gs);
155154
void grep_source_load_driver(struct grep_source *gs);
156-
int grep_source_is_binary(struct grep_source *gs);
155+
157156

158157
int grep_source(struct grep_opt *opt, struct grep_source *gs);
159158

0 commit comments

Comments
 (0)