Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/unix
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-12-23 01:15:09 +0300
committerVicent Marti <tanoku@gmail.com>2010-12-23 01:15:09 +0300
commit9f54fe482dd369ebbae67b0b33f7efde206ba249 (patch)
tree5b239e63f5040ebece759c5143ea44916d17bb63 /src/unix
parent11f6646f032c669170453e8e359ac337fa9abbb7 (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.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;