diff options
author | nulltoken <emeric.fermas@gmail.com> | 2010-12-23 09:22:15 +0100 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2010-12-23 09:22:15 +0100 |
commit | 98e3b298955557ae10d6682ea33eb8ba8a5447a5 (patch) | |
tree | 930944b565777406a48c9243e544b2110fcc3c80 /src/unix/map.c | |
parent | 2c08c3f0742d812bd3790c2541af87634fbb3ab4 (diff) | |
parent | 51035184ddcc7f5a4437f57e04474b4bb98d8a49 (diff) | |
download | libgit2-98e3b298955557ae10d6682ea33eb8ba8a5447a5.tar.gz |
Merge branch 'master' into repo-init
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; |