summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-11-11 17:15:47 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2021-11-11 17:21:32 -0500
commit2374ba8d49ac9dfb084596259ec82c87b384fc32 (patch)
treee4b76a333424703ab7676108d818ec223e62ac8c
parent489aec44477181afa05db41bfd04bb0febe83f59 (diff)
downloadlibgit2-2374ba8d49ac9dfb084596259ec82c87b384fc32.tar.gz
fuzzers: declare static functions as static
-rw-r--r--fuzzers/config_file_fuzzer.c2
-rw-r--r--fuzzers/download_refs_fuzzer.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/fuzzers/config_file_fuzzer.c b/fuzzers/config_file_fuzzer.c
index 582d74aff..890adbfc5 100644
--- a/fuzzers/config_file_fuzzer.c
+++ b/fuzzers/config_file_fuzzer.c
@@ -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);
diff --git a/fuzzers/download_refs_fuzzer.c b/fuzzers/download_refs_fuzzer.c
index bdaa6aab6..ff95cd107 100644
--- a/fuzzers/download_refs_fuzzer.c
+++ b/fuzzers/download_refs_fuzzer.c
@@ -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",