From e8deee43bc0a8a9bf7664485bb0ce3b886189dae Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Wed, 17 Apr 2024 23:15:36 +0200 Subject: VFS/LibC: Fix small bugs --- userland/libc/fcntl/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'userland/libc/fcntl/open.c') 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)); -- cgit v1.2.3