summaryrefslogtreecommitdiff
path: root/src/posix.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/posix.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/posix.c')
-rw-r--r--src/posix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/posix.c b/src/posix.c
index 6e7985ece..bffe02e05 100644
--- a/src/posix.c
+++ b/src/posix.c
@@ -243,17 +243,17 @@ int p_mmap(git_map *out, size_t len, int prot, int flags, int fd, git_off_t offs
out->len = 0;
if ((prot & GIT_PROT_WRITE) && ((flags & GIT_MAP_TYPE) == GIT_MAP_SHARED)) {
- giterr_set(GITERR_OS, "trying to map shared-writeable");
+ git_error_set(GIT_ERROR_OS, "trying to map shared-writeable");
return -1;
}
out->data = malloc(len);
- GITERR_CHECK_ALLOC(out->data);
+ GIT_ERROR_CHECK_ALLOC(out->data);
if (!git__is_ssizet(len) ||
(p_lseek(fd, offset, SEEK_SET) < 0) ||
(p_read(fd, out->data, len) != (ssize_t)len)) {
- giterr_set(GITERR_OS, "mmap emulation failed");
+ git_error_set(GIT_ERROR_OS, "mmap emulation failed");
return -1;
}