diff options
author | Vicent Marti <tanoku@gmail.com> | 2010-12-23 01:15:09 +0300 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2010-12-23 01:15:09 +0300 |
commit | 9f54fe482dd369ebbae67b0b33f7efde206ba249 (patch) | |
tree | 5b239e63f5040ebece759c5143ea44916d17bb63 /src/unix | |
parent | 11f6646f032c669170453e8e359ac337fa9abbb7 (diff) |
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')
-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; |