2005-10-15 Thomas Schwinge <tschwinge@gnu.org>
authorRoland McGrath <roland@gnu.org>
Sun, 16 Oct 2005 08:34:04 +0000 (08:34 +0000)
committerRoland McGrath <roland@gnu.org>
Sun, 16 Oct 2005 08:34:04 +0000 (08:34 +0000)
* include/dirent.h: Include <stdbool.h>.
* sysdeps/mach/hurd/fdopendir.c: Include <fcntl.h>.
(fdopendir): Correct argument to _hurd_fd_get().
* sysdeps/mach/hurd/opendir.c (__opendir): Remove stray `}'.

include/dirent.h
sysdeps/mach/hurd/fdopendir.c
sysdeps/mach/hurd/opendir.c

index 81ad24d..4e95ffd 100644 (file)
@@ -2,6 +2,7 @@
 # include <dirstream.h>
 # include <dirent/dirent.h>
 # include <sys/stat.h>
+# include <stdbool.h>
 
 /* Now define the internal interfaces.  */
 extern DIR *__opendir (__const char *__name);
index d08e478..37dd4bc 100644 (file)
@@ -21,6 +21,7 @@
 #include <errno.h>
 #include <hurd.h>
 #include <hurd/fd.h>
+#include <fcntl.h>
 
 DIR *_hurd_fd_opendir (struct hurd_fd *d); /* opendir.c */
 
@@ -28,7 +29,7 @@ DIR *_hurd_fd_opendir (struct hurd_fd *d); /* opendir.c */
 DIR *
 fdopendir (int fd)
 {
-  struct hurd_fd *d = _hurd_fd_get (d);
+  struct hurd_fd *d = _hurd_fd_get (fd);
 
   if (d == NULL)
     {
index 949db0f..5b10142 100644 (file)
@@ -110,8 +110,6 @@ __opendir (const char *name)
   if (dirp == NULL)
     __close (fd);
 
-    }
-
   return dirp;
 }
 weak_alias (__opendir, opendir)