Userland: Avoid some now-unneeded explicit conversions to Bytes

This commit is contained in:
Timothy Flynn 2024-04-03 21:44:40 -04:00 committed by Andreas Kling
commit c23060e21b
Notes: sideshowbarker 2024-07-17 01:51:00 +09:00
15 changed files with 39 additions and 40 deletions

View file

@ -75,7 +75,7 @@ static ErrorOr<void> launch_server(ByteString const& socket_path, ByteString con
if (server_pid != 0) {
auto server_pid_file = TRY(Core::File::open(pid_path, Core::File::OpenMode::Write));
TRY(server_pid_file->write_until_depleted(ByteString::number(server_pid).bytes()));
TRY(server_pid_file->write_until_depleted(ByteString::number(server_pid)));
TRY(Core::System::kill(getpid(), SIGTERM));
}