summaryrefslogtreecommitdiff
path: root/mmap
diff options
context:
space:
mode:
authorSander Striker <striker@apache.org>2003-03-10 19:02:38 +0000
committerSander Striker <striker@apache.org>2003-03-10 19:02:38 +0000
commit6dc0b1d7c859a1ce3cc264e271a99b458e2f94fd (patch)
tree97c8a23a4275d7f95a1c965deacd27d1caf7e6cd /mmap
parentfe5b359c4df5d84483bb476596bfe1fa20de629c (diff)
downloadapr-6dc0b1d7c859a1ce3cc264e271a99b458e2f94fd.tar.gz
* mmap/unix/mmap.c
(apr_mmap_create): Return errno instead of APR_ENOMEM. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64415 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'mmap')
-rw-r--r--mmap/unix/mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mmap/unix/mmap.c b/mmap/unix/mmap.c
index 2503f5438..42d39caf3 100644
--- a/mmap/unix/mmap.c
+++ b/mmap/unix/mmap.c
@@ -163,7 +163,7 @@ APR_DECLARE(apr_status_t) apr_mmap_create(apr_mmap_t **new,
if (mm == (void *)-1) {
/* we failed to get an mmap'd file... */
- return APR_ENOMEM;
+ return errno;
}
#endif