diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2018-12-27 13:47:34 -0600 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-01-22 22:30:35 +0000 |
commit | f673e232afe22eb865cdc915e55a2df6493f0fbb (patch) | |
tree | e79e3e6fb1e1d78367679aea75e66c8141b4daa8 /tests/clar_libgit2.c | |
parent | 647dfdb42d06514a85c1499f1be88a32b8a4c24b (diff) | |
download | libgit2-f673e232afe22eb865cdc915e55a2df6493f0fbb.tar.gz |
git_error: use new names in internal APIs and usage
Move to the `git_error` name in the internal API for error-related
functions.
Diffstat (limited to 'tests/clar_libgit2.c')
-rw-r--r-- | tests/clar_libgit2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/clar_libgit2.c b/tests/clar_libgit2.c index 740264ccc..4723a0632 100644 --- a/tests/clar_libgit2.c +++ b/tests/clar_libgit2.c @@ -7,7 +7,7 @@ void cl_git_report_failure( int error, int expected, const char *file, int line, const char *fncall) { char msg[4096]; - const git_error *last = giterr_last(); + const git_error *last = git_error_last(); if (expected) p_snprintf(msg, 4096, "error %d (expected %d) - %s", @@ -470,7 +470,7 @@ int cl_repo_get_bool(git_repository *repo, const char *cfg) git_config *config; cl_git_pass(git_repository_config(&config, repo)); if (git_config_get_bool(&val, config, cfg) < 0) - giterr_clear(); + git_error_clear(); git_config_free(config); return val; } |