summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/hostname.cpp
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-01-11 22:16:18 +0200
committerIdan Horowitz <idan.horowitz@gmail.com>2022-01-12 16:09:09 +0200
commitdba0840942feb13295ca3f7e9ec8e1c155c447ae (patch)
treef18253f7087b266deae8955770581d79d5a063df /Kernel/Syscalls/hostname.cpp
parente236f9d85ab892d1564c18836d1dc1bb069bf311 (diff)
downloadserenity-dba0840942feb13295ca3f7e9ec8e1c155c447ae.zip
Kernel: Remove outdated FIXME comment in sys$sethostname
Diffstat (limited to 'Kernel/Syscalls/hostname.cpp')
-rw-r--r--Kernel/Syscalls/hostname.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Kernel/Syscalls/hostname.cpp b/Kernel/Syscalls/hostname.cpp
index 1d84189087..da30c4d2bc 100644
--- a/Kernel/Syscalls/hostname.cpp
+++ b/Kernel/Syscalls/hostname.cpp
@@ -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;
}
}