summary refs log tree commit diff
path: root/io/openat64.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/openat64.c')
-rw-r--r--io/openat64.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/io/openat64.c b/io/openat64.c
index c0c4e19589..c4d60677d1 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);