diff options
author | Russell Belfer <arrbee@arrbee.com> | 2012-03-13 14:23:24 -0700 |
---|---|---|
committer | Russell Belfer <arrbee@arrbee.com> | 2012-03-13 14:23:24 -0700 |
commit | e3c475107045cb89c53c114716bafebc7538433f (patch) | |
tree | eb6df56dc41633a30a935058477e45b8e39ef77a /src/unix/map.c | |
parent | 1736799d2a15d912cfc46b7089c2bff02a1cbd0e (diff) | |
download | libgit2-e3c475107045cb89c53c114716bafebc7538433f.tar.gz |
Resolve comments from pull request
This converts the map validation function into a macro, tweaks
the GITERR_OS system error automatic appending, and adds a
tentative new error access API and some quick unit tests for
both the old and new error APIs.
Diffstat (limited to 'src/unix/map.c')
-rw-r--r-- | src/unix/map.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/unix/map.c b/src/unix/map.c index 1e2389ec2..772f4e247 100644 --- a/src/unix/map.c +++ b/src/unix/map.c @@ -17,8 +17,7 @@ int p_mmap(git_map *out, size_t len, int prot, int flags, int fd, git_off_t offs int mprot = 0; int mflag = 0; - if (validate_map_args(out, len, prot, flags, fd, offset) < 0) - return -1; + GIT_MMAP_VALIDATE(out, len, prot, flags); out->data = NULL; out->len = 0; |