浏览代码

Kernel: Remove outdated FIXME comment in sys$sethostname

Idan Horowitz 3 年之前
父节点
当前提交
dba0840942
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      Kernel/Syscalls/hostname.cpp

+ 2 - 3
Kernel/Syscalls/hostname.cpp

@@ -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> {
-        // FIXME: Use KString instead of String here.
+    hostname().with_exclusive([&](auto& name) {
         name = new_name->view();
         name = new_name->view();
-        return 0;
     });
     });
+    return 0;
 }
 }
 
 
 }
 }