Kernel: Use Userspace<T> for the sethostname syscall

This commit is contained in:
Brian Gianforcaro 2020-08-09 12:53:12 -07:00 committed by Andreas Kling
commit cfedd62b5c
Notes: sideshowbarker 2024-07-19 04:05:44 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ int Process::sys$gethostname(Userspace<char*> buffer, ssize_t size)
return 0;
}
int Process::sys$sethostname(const char* hostname, ssize_t length)
int Process::sys$sethostname(Userspace<const char*> hostname, ssize_t length)
{
REQUIRE_NO_PROMISES;
if (!is_superuser())