Skip to content

Commit 2374ba8

Browse files
committed
fuzzers: declare static functions as static
1 parent 489aec4 commit 2374ba8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

fuzzers/config_file_fuzzer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#define UNUSED(x) (void)(x)
1616

17-
int foreach_cb(const git_config_entry *entry, void *payload)
17+
static int foreach_cb(const git_config_entry *entry, void *payload)
1818
{
1919
UNUSED(entry);
2020
UNUSED(payload);

fuzzers/download_refs_fuzzer.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ static int fuzzer_subtransport_new(
132132
return 0;
133133
}
134134

135-
int fuzzer_subtransport_cb(
135+
static int fuzzer_subtransport_cb(
136136
git_smart_subtransport **out,
137137
git_transport *owner,
138138
void *payload)
@@ -147,7 +147,7 @@ int fuzzer_subtransport_cb(
147147
return 0;
148148
}
149149

150-
int fuzzer_transport_cb(git_transport **out, git_remote *owner, void *param)
150+
static int fuzzer_transport_cb(git_transport **out, git_remote *owner, void *param)
151151
{
152152
git_smart_subtransport_definition def = {
153153
fuzzer_subtransport_cb,
@@ -157,7 +157,7 @@ int fuzzer_transport_cb(git_transport **out, git_remote *owner, void *param)
157157
return git_transport_smart(out, owner, &def);
158158
}
159159

160-
void fuzzer_git_abort(const char *op)
160+
static void fuzzer_git_abort(const char *op)
161161
{
162162
const git_error *err = git_error_last();
163163
fprintf(stderr, "unexpected libgit error: %s: %s\n",

0 commit comments

Comments
 (0)