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/config/backend.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/config/backend.c')
-rw-r--r-- | tests/config/backend.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/config/backend.c b/tests/config/backend.c index 18c4ca59e..96feecc4a 100644 --- a/tests/config/backend.c +++ b/tests/config/backend.c @@ -11,14 +11,14 @@ void test_config_backend__checks_version(void) cl_git_pass(git_config_new(&cfg)); cl_git_fail(git_config_add_backend(cfg, &backend, 0, NULL, false)); - err = giterr_last(); - cl_assert_equal_i(GITERR_INVALID, err->klass); + err = git_error_last(); + cl_assert_equal_i(GIT_ERROR_INVALID, err->klass); - giterr_clear(); + git_error_clear(); backend.version = 1024; cl_git_fail(git_config_add_backend(cfg, &backend, 0, NULL, false)); - err = giterr_last(); - cl_assert_equal_i(GITERR_INVALID, err->klass); + err = git_error_last(); + cl_assert_equal_i(GIT_ERROR_INVALID, err->klass); git_config_free(cfg); } |