summaryrefslogtreecommitdiff
path: root/Servers/LookupServer
diff options
context:
space:
mode:
authorRobin Burchell <robin+git@viroteck.net>2019-06-02 12:19:21 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-02 12:55:51 +0200
commitb55b6cd7fcaa8518e4901d4ec5bd0a9da5b28fc0 (patch)
tree31cb4731fd477522fd6866b6433f6957d421cca4 /Servers/LookupServer
parentdecf1afbaa44d9083137675159ae2fc280f2b1ac (diff)
downloadserenity-b55b6cd7fcaa8518e4901d4ec5bd0a9da5b28fc0.zip
AK: Add implicit String -> StringView conversion
And tidy up existing view() users.
Diffstat (limited to 'Servers/LookupServer')
-rw-r--r--Servers/LookupServer/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Servers/LookupServer/main.cpp b/Servers/LookupServer/main.cpp
index 11e2ab49d0..283aadec91 100644
--- a/Servers/LookupServer/main.cpp
+++ b/Servers/LookupServer/main.cpp
@@ -101,7 +101,7 @@ int main(int argc, char**argv)
auto hostname = String(client_buffer, nrecv, Chomp);
dbgprintf("LookupServer: Got request for '%s' (using IP %s)\n",
hostname.characters(),
- DNS_IP.view().characters());
+ DNS_IP.characters());
Vector<IPv4Address> addresses;
@@ -194,7 +194,7 @@ Vector<IPv4Address> lookup(const String& hostname, bool& did_timeout, const Stri
dst_addr.sin_family = AF_INET;
dst_addr.sin_port = htons(53);
- rc = inet_pton(AF_INET, DNS_IP.view().characters(), &dst_addr.sin_addr);
+ rc = inet_pton(AF_INET, DNS_IP.characters(), &dst_addr.sin_addr);
int nsent = sendto(fd, buffer.pointer(), buffer.size(), 0,(const struct sockaddr *)&dst_addr, sizeof(dst_addr));
if (nsent < 0) {