summaryrefslogtreecommitdiff
path: root/src/refdb.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-12-27 13:47:34 -0600
committerEdward Thomson <ethomson@edwardthomson.com>2019-01-22 22:30:35 +0000
commitf673e232afe22eb865cdc915e55a2df6493f0fbb (patch)
treee79e3e6fb1e1d78367679aea75e66c8141b4daa8 /src/refdb.c
parent647dfdb42d06514a85c1499f1be88a32b8a4c24b (diff)
downloadlibgit2-f673e232afe22eb865cdc915e55a2df6493f0fbb.tar.gz
git_error: use new names in internal APIs and usage
Move to the `git_error` name in the internal API for error-related functions.
Diffstat (limited to 'src/refdb.c')
-rw-r--r--src/refdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/refdb.c b/src/refdb.c
index c162a153f..b466153a7 100644
--- a/src/refdb.c
+++ b/src/refdb.c
@@ -24,7 +24,7 @@ int git_refdb_new(git_refdb **out, git_repository *repo)
assert(out && repo);
db = git__calloc(1, sizeof(*db));
- GITERR_CHECK_ALLOC(db);
+ GIT_ERROR_CHECK_ALLOC(db);
db->repo = repo;
@@ -127,7 +127,7 @@ int git_refdb_iterator(git_reference_iterator **out, git_refdb *db, const char *
int error;
if (!db->backend || !db->backend->iterator) {
- giterr_set(GITERR_REFERENCE, "this backend doesn't support iterators");
+ git_error_set(GIT_ERROR_REFERENCE, "this backend doesn't support iterators");
return -1;
}
@@ -245,7 +245,7 @@ int git_refdb_lock(void **payload, git_refdb *db, const char *refname)
assert(payload && db && refname);
if (!db->backend->lock) {
- giterr_set(GITERR_REFERENCE, "backend does not support locking");
+ git_error_set(GIT_ERROR_REFERENCE, "backend does not support locking");
return -1;
}