diff --git a/Kernel/Net/LocalSocket.cpp b/Kernel/Net/LocalSocket.cpp index a8e1aef7fc..cff5e8679a 100644 --- a/Kernel/Net/LocalSocket.cpp +++ b/Kernel/Net/LocalSocket.cpp @@ -48,7 +48,7 @@ KResultOr> LocalSocket::try_create(int type) return ENOMEM; } -KResultOr LocalSocket::create_connected_pair(int type) +KResultOr LocalSocket::try_create_connected_pair(int type) { auto socket_or_error = LocalSocket::try_create(type); if (socket_or_error.is_error()) diff --git a/Kernel/Net/LocalSocket.h b/Kernel/Net/LocalSocket.h index 7a69814897..ead6dd70e8 100644 --- a/Kernel/Net/LocalSocket.h +++ b/Kernel/Net/LocalSocket.h @@ -23,7 +23,7 @@ class LocalSocket final : public Socket { public: static KResultOr> try_create(int type); - static KResultOr create_connected_pair(int type); + static KResultOr try_create_connected_pair(int type); virtual ~LocalSocket() override; KResult sendfd(const FileDescription& socket_description, FileDescription& passing_description); 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 Process::sys$socketpair(Userspace