summaryrefslogtreecommitdiff
path: root/src/patch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/patch.c')
-rw-r--r--src/patch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/patch.c b/src/patch.c
index 15d2ca811..d19e6833e 100644
--- a/src/patch.c
+++ b/src/patch.c
@@ -80,7 +80,7 @@ size_t git_patch_size(
if (git_diff_delta__format_file_header(
&file_header, patch->delta, NULL, NULL, 0) < 0)
- giterr_clear();
+ git_error_clear();
else
out += git_buf_len(&file_header);
@@ -141,7 +141,7 @@ size_t git_patch_num_hunks(const git_patch *patch)
static int patch_error_outofrange(const char *thing)
{
- giterr_set(GITERR_INVALID, "patch %s index out of range", thing);
+ git_error_set(GIT_ERROR_INVALID, "patch %s index out of range", thing);
return GIT_ENOTFOUND;
}