diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2006-08-31 11:39:36 +0000 |
---|---|---|
committer | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2006-08-31 11:39:36 +0000 |
commit | 967639a59cfbcdecc1a93d6e28a77fdd88e893cf (patch) | |
tree | 259f6abf7f37cf2a13e5b20db65c23de792946f9 /libc/sysdeps/linux | |
parent | 285768c7f05c53e07ce5899e75baa083d28efad7 (diff) |
Made it compile again.
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r-- | libc/sysdeps/linux/common/open.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/open.c b/libc/sysdeps/linux/common/open.c index 1a514e62d..eb0350785 100644 --- a/libc/sysdeps/linux/common/open.c +++ b/libc/sysdeps/linux/common/open.c @@ -26,15 +26,14 @@ int __libc_open(const char *file, int oflag, ...) { mode_t mode = 0; - if (oflag & O_CREAT) - { + if (oflag & O_CREAT) { va_list arg; va_start (arg, oflag); mode = va_arg (arg, mode_t); va_end (arg); } - return __syscall_open(file, flags, mode); + return __syscall_open(file, oflag, mode); } libc_hidden_def(__libc_open) |