diff --git a/Kernel/Process.h b/Kernel/Process.h index 5380a442ae..12e4d373cb 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -211,7 +211,7 @@ public: int sys$getresuid(uid_t*, uid_t*, uid_t*); int sys$getresgid(gid_t*, gid_t*, gid_t*); mode_t sys$umask(mode_t); - int sys$open(const Syscall::SC_open_params*); + int sys$open(Userspace); int sys$close(int fd); ssize_t sys$read(int fd, Userspace, ssize_t); ssize_t sys$write(int fd, const u8*, ssize_t); diff --git a/Kernel/Syscalls/open.cpp b/Kernel/Syscalls/open.cpp index 840b00c911..0d8a3d5e48 100644 --- a/Kernel/Syscalls/open.cpp +++ b/Kernel/Syscalls/open.cpp @@ -31,7 +31,7 @@ namespace Kernel { -int Process::sys$open(const Syscall::SC_open_params* user_params) +int Process::sys$open(Userspace user_params) { Syscall::SC_open_params params; if (!validate_read_and_copy_typed(¶ms, user_params))