diff options
| author | Vicent Martà <tanoku@gmail.com> | 2012-05-18 01:21:06 +0200 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2012-05-18 01:26:26 +0200 |
| commit | e172cf082e62aa421703080d0bccb7b8762c8bd4 (patch) | |
| tree | c19f7b1be056a9176d4e865f5be5c69a5c2912c6 /src/submodule.c | |
| parent | 2e2e97858de18abd43f7e59fcc6151510c6d3272 (diff) | |
| download | libgit2-e172cf082e62aa421703080d0bccb7b8762c8bd4.tar.gz | |
errors: Rename the generic return codes
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 3c07e657d..a63043fd5 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_ENOTFOUND) + if (git_vector_bsearch(&seen, sm) != GIT_NOTFOUND) 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_ENOTFOUND; + return GIT_NOTFOUND; if (sm_ptr) *sm_ptr = git_strmap_value_at(repo->submodules, pos); |
