mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 11:42:38 +03:00
Kernel: Remove outdated FIXME comment in sys$sethostname
This commit is contained in:
parent
e236f9d85a
commit
dba0840942
Notes:
sideshowbarker
2024-07-17 22:55:25 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/dba0840942f Pull-request: https://github.com/SerenityOS/serenity/pull/11817 Reviewed-by: https://github.com/bgianfo ✅
@ -32,11 +32,10 @@ ErrorOr<FlatPtr> Process::sys$sethostname(Userspace<const char*> buffer, size_t
|
||||
if (length > 64)
|
||||
return ENAMETOOLONG;
|
||||
auto new_name = TRY(try_copy_kstring_from_user(buffer, length));
|
||||
return hostname().with_exclusive([&](auto& name) -> ErrorOr<FlatPtr> {
|
||||
// FIXME: Use KString instead of String here.
|
||||
hostname().with_exclusive([&](auto& name) {
|
||||
name = new_name->view();
|
||||
return 0;
|
||||
});
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user