summaryrefslogtreecommitdiff
path: root/userland/libc/fcntl/open.c
diff options
context:
space:
mode:
Diffstat (limited to 'userland/libc/fcntl/open.c')
-rw-r--r--userland/libc/fcntl/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/userland/libc/fcntl/open.c b/userland/libc/fcntl/open.c
index 37bb629..357d826 100644
--- a/userland/libc/fcntl/open.c
+++ b/userland/libc/fcntl/open.c
@@ -8,7 +8,7 @@ int open(const char *file, int flags, ...) {
if (flags & O_CREAT) {
va_list ap;
va_start(ap, flags);
- mode = va_arg(ap, mode_t);
+ mode = va_arg(ap, int);
va_end(ap);
}
RC_ERRNO(syscall(SYS_OPEN, file, flags, mode, 0, 0));