From 245b4053dc63c5e23864fd1a57d595df2a5f06f7 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 30 Aug 2006 17:12:51 +0000 Subject: tweak a few syscalls using varargs --- libc/sysdeps/linux/common/open64.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libc/sysdeps/linux/common/open64.c') 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) -- cgit v1.2.3