* sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
authorRoland McGrath <roland@gnu.org>
Sat, 15 Jun 2002 22:19:53 +0000 (22:19 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 15 Jun 2002 22:19:53 +0000 (22:19 +0000)
warning.

* sysdeps/mach/hurd/getcwd.c
(_hurd_canonicalize_directory_name_internal): unsigned int -> size_t

ChangeLog
sysdeps/mach/hurd/getcwd.c
sysdeps/mach/hurd/mmap.c

index b49b6fb..5bc2ce1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2002-06-15  Roland McGrath  <roland@frob.com>
 
+       * sysdeps/mach/hurd/mmap.c (__mmap): Add a dead case that quiets a
+       warning.
+
+       * sysdeps/mach/hurd/getcwd.c
+       (_hurd_canonicalize_directory_name_internal): unsigned int -> size_t
+
        * sysdeps/unix/sysv/linux/bits/ustat.h: Moved to ...
        * sysdeps/generic/bits/ustat.h: ... here (was almost identical).
 
index 136202a..5102904 100644 (file)
@@ -118,7 +118,7 @@ _hurd_canonicalize_directory_name_internal (file_t thisdir,
       int mount_point;
       file_t newp;
       char *dirdata;
-      unsigned int dirdatasize;
+      size_t dirdatasize;
       int direntry, nentries;
 
 
index 2d332b1..c54bc0c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1994,95,96,97,99,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -129,6 +129,8 @@ __mmap (__ptr_t addr, size_t len, int prot, int flags, int fd, off_t offset)
                return (__ptr_t) (long int) __hurd_fail (EACCES);
              }
            break;
+         default:              /* impossible */
+           return 0;
          }
        break;
        /* XXX handle MAP_NOEXTEND */