about summary refs log tree commit diff
path: root/sysdeps
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 /sysdeps
parentf899db60945ef4c080ffe4393e55ef2fbcbbf6c0 (diff)
downloadglibc-b82006e0b5e0a9d1d573fdd3c1b64a823007ae87.tar.gz
glibc-b82006e0b5e0a9d1d573fdd3c1b64a823007ae87.tar.xz
glibc-b82006e0b5e0a9d1d573fdd3c1b64a823007ae87.zip
* sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
	widening __hurd_fail value.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/hurd/dl-sysdep.c2
1 files changed, 1 insertions, 1 deletions
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);
     }