diff options
author | Eric Blake <ebb9@byu.net> | 2009-12-19 11:49:32 -0700 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2009-12-19 11:53:55 -0700 |
commit | 156a4895aad6b6f0ae8d883d1da354bd083518a6 (patch) | |
tree | b66dd55054990c17a548f71780391998a4d7d101 /lib/dirfd.c | |
parent | f65232a174c15c6c10273185f11b190cae5736ad (diff) | |
download | gnulib-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.c | 2 |
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) |