summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/socket.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-08-29 01:31:45 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-29 01:33:15 +0200
commit48a1a3c0ce270a48203acee28c950746b4593b2e (patch)
treefc98625477955319fde8e6ebb5e0d6004033a293 /Kernel/Syscalls/socket.cpp
parent7f962885357046a9c7c085d2ec240acd890f28f1 (diff)
downloadserenity-48a1a3c0ce270a48203acee28c950746b4593b2e.zip
Kernel: Rename LocalSocket::create_connected_pair() => try_*()
Diffstat (limited to 'Kernel/Syscalls/socket.cpp')
-rw-r--r--Kernel/Syscalls/socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/socket.cpp b/Kernel/Syscalls/socket.cpp
index 0988a04153..af0959dabd 100644
--- a/Kernel/Syscalls/socket.cpp
+++ b/Kernel/Syscalls/socket.cpp
@@ -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();