summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-03 18:40:28 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-03 18:40:28 +0200
commitb139fb9f383911130336ac995cd2671662f9c963 (patch)
treea4df8dca2836753f713aa9c9733235c6dc8c3818 /Kernel/Syscalls
parent67fe92bc4f29adcc2ac6a9fed2b8c6c7a1b1e6d4 (diff)
downloadserenity-b139fb9f383911130336ac995cd2671662f9c963.zip
Kernel: Use Userspace<T> in sys$link() and sys$symlink()
Diffstat (limited to 'Kernel/Syscalls')
-rw-r--r--Kernel/Syscalls/link.cpp4
1 files changed, 2 insertions, 2 deletions
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;