diff options
author | MacDue <macdue@dueutil.tech> | 2023-01-12 22:14:35 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-12 23:29:57 +0000 |
commit | 969aacd6276f4e955a24b65b2f70cc9a9247a389 (patch) | |
tree | 4eb1fd4aa4a35bf297e903c2814db5c05827ddef /Kernel | |
parent | 514224c015c28fc57e605f9ffb44d9ca48902e5b (diff) | |
download | serenity-969aacd6276f4e955a24b65b2f70cc9a9247a389.zip |
Kernel: AK: Fix ignored .to_string() errors in IPv4Socket
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Net/IPv4Socket.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Net/IPv4Socket.cpp b/Kernel/Net/IPv4Socket.cpp index 5b66152ea7..ca73443099 100644 --- a/Kernel/Net/IPv4Socket.cpp +++ b/Kernel/Net/IPv4Socket.cpp @@ -480,9 +480,9 @@ ErrorOr<NonnullOwnPtr<KString>> IPv4Socket::pseudo_path(OpenFileDescription cons StringBuilder builder; TRY(builder.try_append("socket:"sv)); - TRY(builder.try_appendff("{}:{}", m_local_address.to_string(), m_local_port)); + TRY(builder.try_appendff("{}:{}", TRY(m_local_address.to_string()), m_local_port)); if (m_role == Role::Accepted || m_role == Role::Connected) - TRY(builder.try_appendff(" / {}:{}", m_peer_address.to_string(), m_peer_port)); + TRY(builder.try_appendff(" / {}:{}", TRY(m_peer_address.to_string()), m_peer_port)); switch (m_role) { case Role::Listener: |