1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:47:36 +00:00

Kernel: Use Userspace<T> in sys$link() and sys$symlink()

This commit is contained in:
Andreas Kling 2020-08-03 18:40:28 +02:00
parent 67fe92bc4f
commit b139fb9f38
2 changed files with 4 additions and 4 deletions

View file

@ -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;