diff options
author | Roland McGrath <roland@hack.frob.com> | 2014-12-04 12:31:38 -0800 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2014-12-04 12:31:38 -0800 |
commit | 4bee4cd9593610ac1204529076591871b1143c7e (patch) | |
tree | c93f3b074902e65d663da97e34307ae873feadaf /io | |
parent | 84dbedb6081f655bdfc4bf93a6e0e7f46234a8a7 (diff) | |
download | glibc-4bee4cd9593610ac1204529076591871b1143c7e.zip glibc-4bee4cd9593610ac1204529076591871b1143c7e.tar.gz glibc-4bee4cd9593610ac1204529076591871b1143c7e.tar.bz2 |
De-warning a few stubs.
Diffstat (limited to 'io')
-rw-r--r-- | io/openat.c | 8 | ||||
-rw-r--r-- | io/openat64.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/io/openat.c b/io/openat.c index 2d82270..18fe750 100644 --- a/io/openat.c +++ b/io/openat.c @@ -22,6 +22,7 @@ #include <stdio.h> #include <sys/stat.h> #include <kernel-features.h> +#include <libc-internal.h> /* Some mostly-generic code (e.g. sysdeps/posix/getcwd.c) uses this variable if __ASSUME_ATFCTS is not defined. */ @@ -33,10 +34,7 @@ int __have_atfcts; the directory associated with FD. If OFLAG includes O_CREAT, a third argument is the file protection. */ int -__openat (fd, file, oflag) - int fd; - const char *file; - int oflag; +__openat (int fd, const char *file, int oflag, ...) { int mode; @@ -66,6 +64,8 @@ __openat (fd, file, oflag) va_start (arg, oflag); mode = va_arg (arg, int); va_end (arg); + + ignore_value (mode); } __set_errno (ENOSYS); diff --git a/io/openat64.c b/io/openat64.c index c0c4e19..c4d6067 100644 --- a/io/openat64.c +++ b/io/openat64.c @@ -21,15 +21,13 @@ #include <stddef.h> #include <stdio.h> #include <sys/stat.h> +#include <libc-internal.h> /* Open FILE with access OFLAG. Interpret relative paths relative to the directory associated with FD. If OFLAG includes O_CREAT, a third argument is the file protection. */ int -__openat64 (fd, file, oflag) - int fd; - const char *file; - int oflag; +__openat64 (int fd, const char *file, int oflag, ...) { int mode; @@ -59,6 +57,8 @@ __openat64 (fd, file, oflag) va_start (arg, oflag); mode = va_arg (arg, int); va_end (arg); + + ignore_value (mode); } __set_errno (ENOSYS); |