Kernel: AK: Fix ignored .to_string() errors in IPv4Socket

This commit is contained in:
MacDue 2023-01-12 22:14:35 +00:00 committed by Linus Groh
parent 514224c015
commit 969aacd627
Notes: sideshowbarker 2024-07-17 01:46:48 +09:00

View file

@ -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: