diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-06-14 18:57:24 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-06-14 18:57:24 +0100 |
commit | a8df98c6fb07b8ddff18a01d7f2f607d9493dd7c (patch) | |
tree | 508aa2bdd6278e967ce4122c37a6a7d9a77bdad5 /src/amiga/map.c | |
parent | a21bb1aa33e9887c06852db62526895df6091736 (diff) | |
download | libgit2-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-x | src/amiga/map.c | 3 |
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)) { |