aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-04-08 07:11:55 +0000
committerRoland McGrath <roland@gnu.org>2002-04-08 07:11:55 +0000
commitb82006e0b5e0a9d1d573fdd3c1b64a823007ae87 (patch)
treed823d711d2502ecf0d730451dc71f97c79bcbc3c
parentf899db60945ef4c080ffe4393e55ef2fbcbbf6c0 (diff)
downloadglibc-b82006e0b5e0a9d1d573fdd3c1b64a823007ae87.tar
glibc-b82006e0b5e0a9d1d573fdd3c1b64a823007ae87.tar.gz
glibc-b82006e0b5e0a9d1d573fdd3c1b64a823007ae87.tar.bz2
glibc-b82006e0b5e0a9d1d573fdd3c1b64a823007ae87.zip
* sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
widening __hurd_fail value.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/mach/hurd/dl-sysdep.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 775bac79df..fbad5d592a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-04-08 Roland McGrath <roland@frob.com>
+
+ * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
+ widening __hurd_fail value.
+
2002-04-07 Roland McGrath <roland@frob.com>
* sysdeps/mach/hurd/alpha/trampoline.c: Don't include
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c
index b2e7412ea1..11493a7454 100644
--- a/sysdeps/mach/hurd/dl-sysdep.c
+++ b/sysdeps/mach/hurd/dl-sysdep.c
@@ -448,7 +448,7 @@ __mmap (__ptr_t addr, size_t len, int prot, int flags, int fd, off_t offset)
assert (!(flags & MAP_SHARED));
err = __io_map ((mach_port_t) fd, &memobj_rd, &memobj_wr);
if (err)
- return (__ptr_t) __hurd_fail (err);
+ return __hurd_fail (err), MAP_FAILED;
__mach_port_deallocate (__mach_task_self (), memobj_wr);
}