From bee827e203112ee6b4f73a782db046bbce7ed45c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Thu, 6 Jan 2011 21:34:06 +0000 Subject: [PATCH] changed dirfd() to its POSIX signature, without const (see #4947). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40137 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/dirent.h | 2 +- src/system/libroot/posix/dirent.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/headers/posix/dirent.h b/headers/posix/dirent.h index 9d8510eee3..ea8d941be8 100644 --- a/headers/posix/dirent.h +++ b/headers/posix/dirent.h @@ -41,7 +41,7 @@ int closedir(DIR* dir); 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); diff --git a/src/system/libroot/posix/dirent.c b/src/system/libroot/posix/dirent.c index f4c8104237..fef3e3b9b8 100644 --- a/src/system/libroot/posix/dirent.c +++ b/src/system/libroot/posix/dirent.c @@ -279,7 +279,7 @@ telldir(DIR* dir) int -dirfd(const DIR* dir) +dirfd(DIR* dir) { return dir->fd; }