diff options
author | Brian Gianforcaro <b.gianfo@gmail.com> | 2020-08-09 12:51:41 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-10 12:52:15 +0200 |
commit | 1d9554f47082f64c33bdfff1e02098ad8a7aca27 (patch) | |
tree | 3c4af3e01cbff035600c59dbb6067cc1a004aeb8 /Kernel | |
parent | b069d757a3d02e4b4f47cef69b0f149365f2aaed (diff) | |
download | serenity-1d9554f47082f64c33bdfff1e02098ad8a7aca27.zip |
Kernel: Use Userspace<T> for the gethostname syscall
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Process.h | 2 | ||||
-rw-r--r-- | Kernel/Syscalls/hostname.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h index f7d84d6208..879997c2ab 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -250,7 +250,7 @@ public: int sys$clock_gettime(clockid_t, Userspace<timespec*>); int sys$clock_settime(clockid_t, Userspace<const timespec*>); int sys$clock_nanosleep(Userspace<const Syscall::SC_clock_nanosleep_params*>); - int sys$gethostname(char*, ssize_t); + int sys$gethostname(Userspace<char*>, ssize_t); int sys$sethostname(const char*, ssize_t); int sys$uname(utsname*); int sys$readlink(Userspace<const Syscall::SC_readlink_params*>); diff --git a/Kernel/Syscalls/hostname.cpp b/Kernel/Syscalls/hostname.cpp index 8f899dd00b..d81817d2db 100644 --- a/Kernel/Syscalls/hostname.cpp +++ b/Kernel/Syscalls/hostname.cpp @@ -31,7 +31,7 @@ namespace Kernel { extern String* g_hostname; extern Lock* g_hostname_lock; -int Process::sys$gethostname(char* buffer, ssize_t size) +int Process::sys$gethostname(Userspace<char*> buffer, ssize_t size) { REQUIRE_PROMISE(stdio); if (size < 0) |