diff options
Diffstat (limited to 'src/unix/map.c')
-rw-r--r-- | src/unix/map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unix/map.c b/src/unix/map.c index 8a07fcff9..1ebbced5c 100644 --- a/src/unix/map.c +++ b/src/unix/map.c @@ -20,7 +20,7 @@ int git__page_size(size_t *page_size) { long sc_page_size = sysconf(_SC_PAGE_SIZE); if (sc_page_size < 0) { - giterr_set(GITERR_OS, "can't determine system page size"); + git_error_set(GIT_ERROR_OS, "can't determine system page size"); return -1; } *page_size = (size_t) sc_page_size; @@ -55,7 +55,7 @@ int p_mmap(git_map *out, size_t len, int prot, int flags, int fd, git_off_t offs out->data = mmap(NULL, len, mprot, mflag, fd, offset); if (!out->data || out->data == MAP_FAILED) { - giterr_set(GITERR_OS, "failed to mmap. Could not write data"); + git_error_set(GIT_ERROR_OS, "failed to mmap. Could not write data"); return -1; } |