mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 16:47:42 +00:00
Kernel: AK: Fix ignored .to_string() errors in IPv4Socket
This commit is contained in:
parent
514224c015
commit
969aacd627
1 changed files with 2 additions and 2 deletions
|
@ -480,9 +480,9 @@ ErrorOr<NonnullOwnPtr<KString>> IPv4Socket::pseudo_path(OpenFileDescription cons
|
||||||
StringBuilder builder;
|
StringBuilder builder;
|
||||||
TRY(builder.try_append("socket:"sv));
|
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)
|
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) {
|
switch (m_role) {
|
||||||
case Role::Listener:
|
case Role::Listener:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue