OSDN Git Service

Made it compile again.
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Thu, 31 Aug 2006 11:39:36 +0000 (11:39 -0000)
committerPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Thu, 31 Aug 2006 11:39:36 +0000 (11:39 -0000)
libc/sysdeps/linux/common/open.c

index 1a514e6..eb03507 100644 (file)
@@ -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)