summaryrefslogtreecommitdiff
path: root/Kernel/Net
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2020-08-08 17:32:34 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-10 11:51:45 +0200
commitf5744a6f2f63ba9f881132227514b9b3f9496b63 (patch)
tree0d8eb80d2df75f42ec76c3a8cad17d4aeaccea68 /Kernel/Net
parentf22532118411c675e5bd1d2487331e27a872a981 (diff)
downloadserenity-f5744a6f2f63ba9f881132227514b9b3f9496b63.zip
Kernel: PID/TID typing
This compiles, and contains exactly the same bugs as before. The regex 'FIXME: PID/' should reveal all markers that I left behind, including: - Incomplete conversion - Issues or things that look fishy - Actual bugs that will go wrong during runtime
Diffstat (limited to 'Kernel/Net')
-rw-r--r--Kernel/Net/Socket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Net/Socket.cpp b/Kernel/Net/Socket.cpp
index a021b80658..9114b8eb4a 100644
--- a/Kernel/Net/Socket.cpp
+++ b/Kernel/Net/Socket.cpp
@@ -56,7 +56,7 @@ Socket::Socket(int domain, int type, int protocol)
, m_protocol(protocol)
{
auto& process = *Process::current();
- m_origin = { process.pid(), process.uid(), process.gid() };
+ m_origin = { process.pid().value(), process.uid(), process.gid() };
}
Socket::~Socket()
@@ -83,7 +83,7 @@ RefPtr<Socket> Socket::accept()
auto client = m_pending.take_first();
ASSERT(!client->is_connected());
auto& process = *Process::current();
- client->m_acceptor = { process.pid(), process.uid(), process.gid() };
+ client->m_acceptor = { process.pid().value(), process.uid(), process.gid() };
client->m_connected = true;
client->m_role = Role::Accepted;
return client;