mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
fuzzers: declare static functions as static
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
#define UNUSED(x) (void)(x)
|
||||
|
||||
int foreach_cb(const git_config_entry *entry, void *payload)
|
||||
static int foreach_cb(const git_config_entry *entry, void *payload)
|
||||
{
|
||||
UNUSED(entry);
|
||||
UNUSED(payload);
|
||||
|
||||
@@ -132,7 +132,7 @@ static int fuzzer_subtransport_new(
|
||||
return 0;
|
||||
}
|
||||
|
||||
int fuzzer_subtransport_cb(
|
||||
static int fuzzer_subtransport_cb(
|
||||
git_smart_subtransport **out,
|
||||
git_transport *owner,
|
||||
void *payload)
|
||||
@@ -147,7 +147,7 @@ int fuzzer_subtransport_cb(
|
||||
return 0;
|
||||
}
|
||||
|
||||
int fuzzer_transport_cb(git_transport **out, git_remote *owner, void *param)
|
||||
static int fuzzer_transport_cb(git_transport **out, git_remote *owner, void *param)
|
||||
{
|
||||
git_smart_subtransport_definition def = {
|
||||
fuzzer_subtransport_cb,
|
||||
@@ -157,7 +157,7 @@ int fuzzer_transport_cb(git_transport **out, git_remote *owner, void *param)
|
||||
return git_transport_smart(out, owner, &def);
|
||||
}
|
||||
|
||||
void fuzzer_git_abort(const char *op)
|
||||
static void fuzzer_git_abort(const char *op)
|
||||
{
|
||||
const git_error *err = git_error_last();
|
||||
fprintf(stderr, "unexpected libgit error: %s: %s\n",
|
||||
|
||||
Reference in New Issue
Block a user