mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
LibCore: Remove strtol
call from parse_sockets_from_system_server
This commit is contained in:
parent
568e5d5631
commit
e169d99bec
Notes:
sideshowbarker
2024-07-17 05:03:11 +09:00
Author: https://github.com/DanShaders Commit: https://github.com/SerenityOS/serenity/commit/e169d99bec Pull-request: https://github.com/SerenityOS/serenity/pull/21701 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/BertalanD ✅ Reviewed-by: https://github.com/kleinesfilmroellchen ✅ Reviewed-by: https://github.com/trflynn89
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(';')) {
|
||||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue