* sysdeps/mach/hurd/dl-sysdep.c (__mmap): Use MAP_FAILED instead of
authorRoland McGrath <roland@gnu.org>
Mon, 8 Apr 2002 07:11:55 +0000 (07:11 +0000)
committerRoland McGrath <roland@gnu.org>
Mon, 8 Apr 2002 07:11:55 +0000 (07:11 +0000)
widening __hurd_fail value.

ChangeLog
sysdeps/mach/hurd/dl-sysdep.c

index 775bac7..fbad5d5 100644 (file)
--- 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
index b2e7412..11493a7 100644 (file)
@@ -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);
     }