mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
Kernel: Use Userspace<T> for the gethostname syscall
This commit is contained in:
parent
b069d757a3
commit
1d9554f470
Notes:
sideshowbarker
2024-07-19 04:05:48 +09:00
Author: https://github.com/bgianfo
Commit: 1d9554f470
Pull-request: https://github.com/SerenityOS/serenity/pull/3062
Reviewed-by: https://github.com/awesomekling
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue