[haiku-commits] r40137 - in haiku/trunk: headers/posix src/system/libroot/posix

  • From: korli@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 6 Jan 2011 22:34:06 +0100 (CET)

Author: korli
Date: 2011-01-06 22:34:06 +0100 (Thu, 06 Jan 2011)
New Revision: 40137
Changeset: http://dev.haiku-os.org/changeset/40137
Ticket: http://dev.haiku-os.org/ticket/4947

Modified:
   haiku/trunk/headers/posix/dirent.h
   haiku/trunk/src/system/libroot/posix/dirent.c
Log:
changed dirfd() to its POSIX signature, without const (see #4947).


Modified: haiku/trunk/headers/posix/dirent.h
===================================================================
--- haiku/trunk/headers/posix/dirent.h  2011-01-06 20:03:41 UTC (rev 40136)
+++ haiku/trunk/headers/posix/dirent.h  2011-01-06 21:34:06 UTC (rev 40137)
@@ -41,7 +41,7 @@
 void                   rewinddir(DIR* dir);
 void                   seekdir(DIR* dir, long int position);
 long int               telldir(DIR* dir);
-int                            dirfd(const DIR* dir);
+int                            dirfd(DIR* dir);
 
 int                            alphasort(const struct dirent** entry1,
                                        const struct dirent** entry2);

Modified: haiku/trunk/src/system/libroot/posix/dirent.c
===================================================================
--- haiku/trunk/src/system/libroot/posix/dirent.c       2011-01-06 20:03:41 UTC 
(rev 40136)
+++ haiku/trunk/src/system/libroot/posix/dirent.c       2011-01-06 21:34:06 UTC 
(rev 40137)
@@ -279,7 +279,7 @@
 
 
 int
-dirfd(const DIR* dir)
+dirfd(DIR* dir)
 {
        return dir->fd;
 }


Other related posts:

  • » [haiku-commits] r40137 - in haiku/trunk: headers/posix src/system/libroot/posix - korli