summaryrefslogtreecommitdiff
path: root/Userland/Services
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-11-01 16:00:07 +0100
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-11-05 00:17:01 +0330
commit34a8ee6da50352c2bdd522a765f7bec097a2806b (patch)
treee4dc4e450cd64a3a223b78354cb9c41dd0d53493 /Userland/Services
parent0d6c8afa4e3da4983cd0b628cc4f2ecf71559a3a (diff)
downloadserenity-34a8ee6da50352c2bdd522a765f7bec097a2806b.zip
LibC+LookupServer: Compute magic number to avoid hardcoding
Diffstat (limited to 'Userland/Services')
-rw-r--r--Userland/Services/LookupServer/LookupServer.ipc3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Services/LookupServer/LookupServer.ipc b/Userland/Services/LookupServer/LookupServer.ipc
index de694e6f9f..ab1a6475fa 100644
--- a/Userland/Services/LookupServer/LookupServer.ipc
+++ b/Userland/Services/LookupServer/LookupServer.ipc
@@ -1,4 +1,5 @@
-endpoint LookupServer [magic=9001]
+// Keep the name synchronized with LibC/netdb.cpp, constant 'lookup_server_endpoint_magic'.
+endpoint LookupServer
{
lookup_name(String name) => (int code, Vector<String> addresses)
lookup_address(String address) => (int code, String name)