From f673e232afe22eb865cdc915e55a2df6493f0fbb Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Thu, 27 Dec 2018 13:47:34 -0600 Subject: git_error: use new names in internal APIs and usage Move to the `git_error` name in the internal API for error-related functions. --- tests/diff/blob.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/diff/blob.c') diff --git a/tests/diff/blob.c b/tests/diff/blob.c index a876a973d..37898adcf 100644 --- a/tests/diff/blob.c +++ b/tests/diff/blob.c @@ -582,8 +582,8 @@ void test_diff_blob__checks_options_version_too_low(void) cl_git_fail(git_diff_blobs( d, NULL, alien, NULL, &opts, diff_file_cb, diff_binary_cb, diff_hunk_cb, diff_line_cb, &expected)); - err = giterr_last(); - cl_assert_equal_i(GITERR_INVALID, err->klass); + err = git_error_last(); + cl_assert_equal_i(GIT_ERROR_INVALID, err->klass); } void test_diff_blob__checks_options_version_too_high(void) @@ -594,8 +594,8 @@ void test_diff_blob__checks_options_version_too_high(void) cl_git_fail(git_diff_blobs( d, NULL, alien, NULL, &opts, diff_file_cb, diff_binary_cb, diff_hunk_cb, diff_line_cb, &expected)); - err = giterr_last(); - cl_assert_equal_i(GITERR_INVALID, err->klass); + err = git_error_last(); + cl_assert_equal_i(GIT_ERROR_INVALID, err->klass); } void test_diff_blob__can_correctly_detect_a_binary_blob_as_binary(void) -- cgit v1.2.1