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/config_cache.c | |
parent | 2e2e97858de18abd43f7e59fcc6151510c6d3272 (diff) | |
download | libgit2-e172cf082e62aa421703080d0bccb7b8762c8bd4.tar.gz |
errors: Rename the generic return codes
Diffstat (limited to 'src/config_cache.c')
-rw-r--r-- | src/config_cache.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config_cache.c b/src/config_cache.c index 057f21439..b23fd7b31 100644 --- a/src/config_cache.c +++ b/src/config_cache.c @@ -66,22 +66,22 @@ int git_repository__cvar(int *out, git_repository *repo, git_cvar_cached cvar) int error; error = git_repository_config__weakptr(&config, repo); - if (error < GIT_SUCCESS) + if (error < 0) return error; error = git_config_get_mapped(out, config, data->cvar_name, data->maps, data->map_count); - if (error == GIT_ENOTFOUND) + if (error == GIT_NOTFOUND) *out = data->default_value; - else if (error < GIT_SUCCESS) + else if (error < 0) return error; repo->cvar_cache[(int)cvar] = *out; } - return GIT_SUCCESS; + return 0; } void git_repository__cvar_cache_clear(git_repository *repo) |