diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-05-18 01:48:50 +0200 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-05-18 01:48:50 +0200 |
commit | 904b67e69fa15b7a3246e43b3d78645ffa2331f6 (patch) | |
tree | 3be54c31248759ba27a08cef52558385116d9b19 /src/submodule.c | |
parent | e172cf082e62aa421703080d0bccb7b8762c8bd4 (diff) | |
download | libgit2-breaking-changes.tar.gz |
errors: Rename error codesbreaking-changes
Diffstat (limited to 'src/submodule.c')
-rw-r--r-- | src/submodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/submodule.c b/src/submodule.c index a63043fd5..3c07e657d 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -351,7 +351,7 @@ int git_submodule_foreach( git_strmap_foreach_value(repo->submodules, sm, { /* usually the following will not come into play */ if (sm->refcount > 1) { - if (git_vector_bsearch(&seen, sm) != GIT_NOTFOUND) + if (git_vector_bsearch(&seen, sm) != GIT_ENOTFOUND) continue; if ((error = git_vector_insert(&seen, sm)) < 0) break; @@ -378,7 +378,7 @@ int git_submodule_lookup( pos = git_strmap_lookup_index(repo->submodules, name); if (!git_strmap_valid_index(repo->submodules, pos)) - return GIT_NOTFOUND; + return GIT_ENOTFOUND; if (sm_ptr) *sm_ptr = git_strmap_value_at(repo->submodules, pos); |