summaryrefslogtreecommitdiff
path: root/examples/diff.c
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-05-18 01:21:06 +0200
committerVicent Martí <tanoku@gmail.com>2012-05-18 01:26:26 +0200
commite172cf082e62aa421703080d0bccb7b8762c8bd4 (patch)
treec19f7b1be056a9176d4e865f5be5c69a5c2912c6 /examples/diff.c
parent2e2e97858de18abd43f7e59fcc6151510c6d3272 (diff)
downloadlibgit2-e172cf082e62aa421703080d0bccb7b8762c8bd4.tar.gz
errors: Rename the generic return codes
Diffstat (limited to 'examples/diff.c')
-rw-r--r--examples/diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/diff.c b/examples/diff.c
index 1b4ab549b..3c44695cf 100644
--- a/examples/diff.c
+++ b/examples/diff.c
@@ -36,7 +36,7 @@ int resolve_to_tree(git_repository *repo, const char *identifier, git_tree **tre
}
if (obj == NULL)
- return GIT_ENOTFOUND;
+ return GIT_NOTFOUND;
switch (git_object_type(obj)) {
case GIT_OBJ_TREE:
@@ -47,7 +47,7 @@ int resolve_to_tree(git_repository *repo, const char *identifier, git_tree **tre
git_object_free(obj);
break;
default:
- err = GIT_ENOTFOUND;
+ err = GIT_NOTFOUND;
}
return err;