summaryrefslogtreecommitdiff
path: root/src/unix/map.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-12-23 00:15:09 +0200
committerVicent Marti <tanoku@gmail.com>2010-12-23 00:15:09 +0200
commit9f54fe482dd369ebbae67b0b33f7efde206ba249 (patch)
tree5b239e63f5040ebece759c5143ea44916d17bb63 /src/unix/map.c
parent11f6646f032c669170453e8e359ac337fa9abbb7 (diff)
downloadlibgit2-9f54fe482dd369ebbae67b0b33f7efde206ba249.tar.gz
Remove git_errno
It was not being used by any methods (only by malloc and calloc), and since it needs to be TLS, it cannot be exported on DLLs on Windows. Burn it with fire. The API always returns error codes! Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/unix/map.c')
-rw-r--r--src/unix/map.c2
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;