summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-01-10 21:44:26 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2019-01-22 22:30:37 +0000
commit115a6c50c9c67bdf952304a3ed6a24673b42b815 (patch)
tree942380ac82be554a9e1ccee2a57bfbdc95a55732
parentf673e232afe22eb865cdc915e55a2df6493f0fbb (diff)
downloadlibgit2-115a6c50c9c67bdf952304a3ed6a24673b42b815.tar.gz
errors: remove giterr usage in fuzzers
-rw-r--r--fuzzers/download_refs_fuzzer.c2
-rw-r--r--fuzzers/packfile_fuzzer.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/fuzzers/download_refs_fuzzer.c b/fuzzers/download_refs_fuzzer.c
index 3807c09b3..93f1b49b3 100644
--- a/fuzzers/download_refs_fuzzer.c
+++ b/fuzzers/download_refs_fuzzer.c
@@ -158,7 +158,7 @@ int fuzzer_transport_cb(git_transport **out, git_remote *owner, void *param)
void fuzzer_git_abort(const char *op)
{
- const git_error *err = giterr_last();
+ const git_error *err = git_error_last();
fprintf(stderr, "unexpected libgit error: %s: %s\n",
op, err ? err->message : "<none>");
abort();
diff --git a/fuzzers/packfile_fuzzer.c b/fuzzers/packfile_fuzzer.c
index e70c6c949..a448233cb 100644
--- a/fuzzers/packfile_fuzzer.c
+++ b/fuzzers/packfile_fuzzer.c
@@ -77,7 +77,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
if (git_indexer_new(&indexer, ".", 0, odb, NULL) < 0) {
fprintf(stderr, "Failed to create the indexer: %s\n",
- giterr_last()->message);
+ git_error_last()->message);
abort();
}