mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:07:35 +00:00
LibCore: Remove strtol
call from parse_sockets_from_system_server
This commit is contained in:
parent
568e5d5631
commit
e169d99bec
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ static void parse_sockets_from_system_server()
|
||||||
|
|
||||||
for (auto const socket : StringView { sockets, strlen(sockets) }.split_view(';')) {
|
for (auto const socket : StringView { sockets, strlen(sockets) }.split_view(';')) {
|
||||||
auto params = socket.split_view(':');
|
auto params = socket.split_view(':');
|
||||||
s_overtaken_sockets.set(params[0].to_deprecated_string(), strtol(params[1].to_deprecated_string().characters(), nullptr, 10));
|
VERIFY(params.size() == 2);
|
||||||
|
s_overtaken_sockets.set(params[0].to_deprecated_string(), params[1].to_int().value());
|
||||||
}
|
}
|
||||||
|
|
||||||
s_overtaken_sockets_parsed = true;
|
s_overtaken_sockets_parsed = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue