summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Kernel/Process.h4
-rw-r--r--Kernel/Syscalls/link.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index 8bcab0db08..bbb6031307 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -272,9 +272,9 @@ public:
int sys$mkdir(Userspace<const char*> pathname, size_t path_length, mode_t mode);
clock_t sys$times(tms*);
int sys$utime(Userspace<const char*> pathname, size_t path_length, Userspace<const struct utimbuf*>);
- int sys$link(const Syscall::SC_link_params*);
+ int sys$link(Userspace<const Syscall::SC_link_params*>);
int sys$unlink(const char* pathname, size_t path_length);
- int sys$symlink(const Syscall::SC_symlink_params*);
+ int sys$symlink(Userspace<const Syscall::SC_symlink_params*>);
int sys$rmdir(Userspace<const char*> 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 bf8dfaeb51..cbb3185e03 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<const Syscall::SC_link_params*> 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<const Syscall::SC_symlink_params*> user_params)
{
REQUIRE_PROMISE(cpath);
Syscall::SC_symlink_params params;