summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2020-08-05 00:05:08 -0700
committerAndreas Kling <kling@serenityos.org>2020-08-05 09:36:53 +0200
commit337e8f98cdc0591476ec6b202cff6413c5902e6a (patch)
tree9bf1b0a32d33152060c94d9af7ce5a7df8f46914
parentc1541f4a610576e08a6872ced718b5859718103a (diff)
downloadserenity-337e8f98cdc0591476ec6b202cff6413c5902e6a.zip
Kernel: Use Userspace<T> for the rename syscall
-rw-r--r--Kernel/Process.h2
-rw-r--r--Kernel/Syscalls/rename.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index e4b5993375..c3af14adbb 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -302,7 +302,7 @@ public:
int sys$detach_thread(int tid);
int sys$set_thread_name(int tid, const char* buffer, size_t buffer_size);
int sys$get_thread_name(int tid, char* buffer, size_t buffer_size);
- int sys$rename(const Syscall::SC_rename_params*);
+ int sys$rename(Userspace<const Syscall::SC_rename_params*>);
int sys$mknod(Userspace<const Syscall::SC_mknod_params*>);
int sys$shbuf_create(int, void** buffer);
int sys$shbuf_allow_pid(int, pid_t peer_pid);
diff --git a/Kernel/Syscalls/rename.cpp b/Kernel/Syscalls/rename.cpp
index 74b2b7f91d..0a06eaceb8 100644
--- a/Kernel/Syscalls/rename.cpp
+++ b/Kernel/Syscalls/rename.cpp
@@ -30,7 +30,7 @@
namespace Kernel {
-int Process::sys$rename(const Syscall::SC_rename_params* user_params)
+int Process::sys$rename(Userspace<const Syscall::SC_rename_params*> user_params)
{
REQUIRE_PROMISE(cpath);
Syscall::SC_rename_params params;