summaryrefslogtreecommitdiff
path: root/src/amiga/map.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-14 18:57:24 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-06-14 18:57:24 +0100
commita8df98c6fb07b8ddff18a01d7f2f607d9493dd7c (patch)
tree508aa2bdd6278e967ce4122c37a6a7d9a77bdad5 /src/amiga/map.c
parenta21bb1aa33e9887c06852db62526895df6091736 (diff)
downloadlibgit2-a8df98c6fb07b8ddff18a01d7f2f607d9493dd7c.tar.gz
Updates from comments on OS4 compatibility pull request http://github.com/libgit2/libgit2/pull/766
Diffstat (limited to 'src/amiga/map.c')
-rwxr-xr-xsrc/amiga/map.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amiga/map.c b/src/amiga/map.c
index d36bcbc9c..643e6c65d 100755
--- a/src/amiga/map.c
+++ b/src/amiga/map.c
@@ -23,7 +23,8 @@ int p_mmap(git_map *out, size_t len, int prot, int flags, int fd, git_off_t offs
out->len = 0;
if ((prot & GIT_PROT_WRITE) && ((flags & GIT_MAP_TYPE) == GIT_MAP_SHARED)) {
- printf("Trying to map shared-writeable file!!!\n");
+ giterr_set(GITERR_OS, "Trying to map shared-writeable");
+ return -1;
}
if(out->data = malloc(len)) {