diff options
Diffstat (limited to 'src/unix/map.c')
-rw-r--r-- | src/unix/map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/map.c b/src/unix/map.c index a41bae0b8..3008008a6 100644 --- a/src/unix/map.c +++ b/src/unix/map.c @@ -40,7 +40,7 @@ int git__mmap(git_map *out, size_t len, int prot, int flags, int fd, off_t offse out->data = mmap(NULL, len, mprot, mflag, fd, offset); if (!out->data || out->data == MAP_FAILED) - return git_os_error(); + return GIT_EOSERR; out->len = len; return GIT_SUCCESS; |