summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore/LocalServer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibCore/LocalServer.cpp')
-rw-r--r--Userland/Libraries/LibCore/LocalServer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibCore/LocalServer.cpp b/Userland/Libraries/LibCore/LocalServer.cpp
index e1f4ab1a51..9bbd878a83 100644
--- a/Userland/Libraries/LibCore/LocalServer.cpp
+++ b/Userland/Libraries/LibCore/LocalServer.cpp
@@ -61,7 +61,7 @@ void LocalServer::setup_notifier()
};
}
-bool LocalServer::listen(const String& address)
+bool LocalServer::listen(String const& address)
{
if (m_listening)
return false;
@@ -92,7 +92,7 @@ bool LocalServer::listen(const String& address)
return false;
}
auto un = un_optional.value();
- rc = ::bind(m_fd, (const sockaddr*)&un, sizeof(un));
+ rc = ::bind(m_fd, (sockaddr const*)&un, sizeof(un));
if (rc < 0) {
perror("bind");
return false;