diff options
Diffstat (limited to 'libc/sysdeps/linux/common/open64.c')
-rw-r--r-- | libc/sysdeps/linux/common/open64.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libc/sysdeps/linux/common/open64.c b/libc/sysdeps/linux/common/open64.c index 93a27e9bd..1c40b3e9b 100644 --- a/libc/sysdeps/linux/common/open64.c +++ b/libc/sysdeps/linux/common/open64.c @@ -23,17 +23,17 @@ libc_hidden_proto(__libc_open) libc_hidden_proto(__libc_open64) int __libc_open64 (const char *file, int oflag, ...) { - int mode = 0; + mode_t mode = 0; - if (oflag & O_CREAT) + if (oflag & O_CREAT) { - va_list arg; - va_start (arg, oflag); - mode = va_arg (arg, int); - va_end (arg); + va_list arg; + va_start (arg, oflag); + mode = va_arg (arg, mode_t); + va_end (arg); } - return __libc_open(file, oflag | O_LARGEFILE, mode); + return __libc_open(file, oflag | O_LARGEFILE, mode); } libc_hidden_def(__libc_open64) |