Kernel: Rename LocalSocket::create_connected_pair() => try_*()

This commit is contained in:
Andreas Kling 2021-08-29 01:31:45 +02:00
commit 48a1a3c0ce
Notes: sideshowbarker 2024-07-18 05:06:49 +09:00
3 changed files with 3 additions and 3 deletions

View file

@ -406,7 +406,7 @@ KResultOr<FlatPtr> Process::sys$socketpair(Userspace<const Syscall::SC_socketpai
if (params.protocol != 0 && params.protocol != PF_LOCAL)
return EINVAL;
auto result = LocalSocket::create_connected_pair(params.type & SOCK_TYPE_MASK);
auto result = LocalSocket::try_create_connected_pair(params.type & SOCK_TYPE_MASK);
if (result.is_error())
return result.error();
auto pair = result.value();