mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:37:45 +00:00
Kernel: Remove outdated FIXME comment in sys$sethostname
This commit is contained in:
parent
e236f9d85a
commit
dba0840942
1 changed files with 2 additions and 3 deletions
|
@ -32,11 +32,10 @@ ErrorOr<FlatPtr> Process::sys$sethostname(Userspace<const char*> buffer, size_t
|
||||||
if (length > 64)
|
if (length > 64)
|
||||||
return ENAMETOOLONG;
|
return ENAMETOOLONG;
|
||||||
auto new_name = TRY(try_copy_kstring_from_user(buffer, length));
|
auto new_name = TRY(try_copy_kstring_from_user(buffer, length));
|
||||||
return hostname().with_exclusive([&](auto& name) -> ErrorOr<FlatPtr> {
|
hostname().with_exclusive([&](auto& name) {
|
||||||
// FIXME: Use KString instead of String here.
|
|
||||||
name = new_name->view();
|
name = new_name->view();
|
||||||
return 0;
|
|
||||||
});
|
});
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue