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/threads | |
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/threads')
-rw-r--r-- | tests/threads/basic.c | 2 | ||||
-rw-r--r-- | tests/threads/diff.c | 4 | ||||
-rw-r--r-- | tests/threads/iterator.c | 2 | ||||
-rw-r--r-- | tests/threads/refdb.c | 6 |
4 files changed, 7 insertions, 7 deletions
diff --git a/tests/threads/basic.c b/tests/threads/basic.c index 9ce740cf9..ed4fd2f9b 100644 --- a/tests/threads/basic.c +++ b/tests/threads/basic.c @@ -38,7 +38,7 @@ void test_threads_basic__multiple_init(void) static void *set_error(void *dummy) { - giterr_set(GITERR_INVALID, "oh no, something happened!\n"); + git_error_set(GIT_ERROR_INVALID, "oh no, something happened!\n"); return dummy; } diff --git a/tests/threads/diff.c b/tests/threads/diff.c index ab34b32a1..699642790 100644 --- a/tests/threads/diff.c +++ b/tests/threads/diff.c @@ -136,7 +136,7 @@ static void *run_index_diffs(void *arg) git_diff_free(diff); git_repository_free(repo); - giterr_clear(); + git_error_clear(); return arg; } @@ -203,7 +203,7 @@ static void *run_index_diffs_with_modifier(void *arg) done: git_index_free(idx); git_repository_free(repo); - giterr_clear(); + git_error_clear(); return arg; } diff --git a/tests/threads/iterator.c b/tests/threads/iterator.c index d93c89110..33d1bda81 100644 --- a/tests/threads/iterator.c +++ b/tests/threads/iterator.c @@ -41,7 +41,7 @@ static void *run_workdir_iterator(void *arg) git_iterator_free(iter); git_repository_free(repo); - giterr_clear(); + git_error_clear(); return arg; } diff --git a/tests/threads/refdb.c b/tests/threads/refdb.c index 94c5f5057..a4630df6a 100644 --- a/tests/threads/refdb.c +++ b/tests/threads/refdb.c @@ -58,7 +58,7 @@ static void *iterate_refs(void *arg) git_reference_iterator_free(i); git_repository_free(repo); - giterr_clear(); + git_error_clear(); return arg; } @@ -101,7 +101,7 @@ static void *create_refs(void *arg) git_repository_free(repo); - giterr_clear(); + git_error_clear(); return arg; } @@ -143,7 +143,7 @@ static void *delete_refs(void *arg) } git_repository_free(repo); - giterr_clear(); + git_error_clear(); return arg; } |