summaryrefslogtreecommitdiff
path: root/src/amiga
diff options
context:
space:
mode:
Diffstat (limited to 'src/amiga')
-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)) {