summaryrefslogtreecommitdiff
path: root/src/diff_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/diff_parse.c')
-rw-r--r--src/diff_parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/diff_parse.c b/src/diff_parse.c
index 59fd8612a..b4c76a3eb 100644
--- a/src/diff_parse.c
+++ b/src/diff_parse.c
@@ -78,10 +78,10 @@ int git_diff_from_buffer(
*out = NULL;
diff = diff_parsed_alloc();
- GITERR_CHECK_ALLOC(diff);
+ GIT_ERROR_CHECK_ALLOC(diff);
ctx = git_patch_parse_ctx_init(content, content_len, NULL);
- GITERR_CHECK_ALLOC(ctx);
+ GIT_ERROR_CHECK_ALLOC(ctx);
while (ctx->parse_ctx.remain_len) {
if ((error = git_patch_parse(&patch, ctx)) < 0)
@@ -92,7 +92,7 @@ int git_diff_from_buffer(
}
if (error == GIT_ENOTFOUND && git_vector_length(&diff->patches) > 0) {
- giterr_clear();
+ git_error_clear();
error = 0;
}