diff --git a/Kernel/Process.h b/Kernel/Process.h index 8bcab0db089..bbb6031307a 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -272,9 +272,9 @@ public: int sys$mkdir(Userspace pathname, size_t path_length, mode_t mode); clock_t sys$times(tms*); int sys$utime(Userspace pathname, size_t path_length, Userspace); - int sys$link(const Syscall::SC_link_params*); + int sys$link(Userspace); int sys$unlink(const char* pathname, size_t path_length); - int sys$symlink(const Syscall::SC_symlink_params*); + int sys$symlink(Userspace); int sys$rmdir(Userspace pathname, size_t path_length); int sys$mount(const Syscall::SC_mount_params*); int sys$umount(const char* mountpoint, size_t mountpoint_length); diff --git a/Kernel/Syscalls/link.cpp b/Kernel/Syscalls/link.cpp index bf8dfaeb514..cbb3185e035 100644 --- a/Kernel/Syscalls/link.cpp +++ b/Kernel/Syscalls/link.cpp @@ -30,7 +30,7 @@ namespace Kernel { -int Process::sys$link(const Syscall::SC_link_params* user_params) +int Process::sys$link(Userspace user_params) { REQUIRE_PROMISE(cpath); Syscall::SC_link_params params; @@ -43,7 +43,7 @@ int Process::sys$link(const Syscall::SC_link_params* user_params) return VFS::the().link(old_path, new_path, current_directory()); } -int Process::sys$symlink(const Syscall::SC_symlink_params* user_params) +int Process::sys$symlink(Userspace user_params) { REQUIRE_PROMISE(cpath); Syscall::SC_symlink_params params;