summaryrefslogtreecommitdiff
path: root/lib/dirfd.c
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-12-19 11:49:32 -0700
committerEric Blake <ebb9@byu.net>2009-12-19 11:53:55 -0700
commit156a4895aad6b6f0ae8d883d1da354bd083518a6 (patch)
treeb66dd55054990c17a548f71780391998a4d7d101 /lib/dirfd.c
parentf65232a174c15c6c10273185f11b190cae5736ad (diff)
downloadgnulib-156a4895aad6b6f0ae8d883d1da354bd083518a6.tar.gz
dirfd: fix prototype
Fix prototype to match POSIX. * lib/dirent.in.h (dirfd): Argument is not const, per POSIX. * lib/dirfd.c (dirfd): Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'lib/dirfd.c')
-rw-r--r--lib/dirfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dirfd.c b/lib/dirfd.c
index 81993c502c..ea8ec4eb88 100644
--- a/lib/dirfd.c
+++ b/lib/dirfd.c
@@ -23,7 +23,7 @@
#include <errno.h>
int
-dirfd (DIR const *dir_p)
+dirfd (DIR *dir_p)
{
int fd = DIR_TO_FD (dir_p);
if (fd == -1)