aboutsummaryrefslogtreecommitdiff
path: root/toys/other/nbd_client.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2017-07-17 05:23:45 -0500
committerRob Landley <rob@landley.net>2017-07-17 05:23:45 -0500
commit92b6026fa55eb1a6d76dfa549e173fc7b863dda5 (patch)
tree93d148eee63cb4aea260f3faad60ba60b75fe43e /toys/other/nbd_client.c
parentd4adb3f8e2ec39674e34ed518983ed6e85560c91 (diff)
downloadtoybox-92b6026fa55eb1a6d76dfa549e173fc7b863dda5.tar.gz
Split out xgetaddrinfo() from xconnect()
Diffstat (limited to 'toys/other/nbd_client.c')
-rw-r--r--toys/other/nbd_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/nbd_client.c b/toys/other/nbd_client.c
index 3ad366f3..fcd0fca8 100644
--- a/toys/other/nbd_client.c
+++ b/toys/other/nbd_client.c
@@ -52,7 +52,7 @@ void nbd_client_main(void)
// Find and connect to server
- sock = xconnect(host, port, AF_UNSPEC, SOCK_STREAM, 0, 0);
+ sock = xconnect(xgetaddrinfo(host, port, AF_UNSPEC, SOCK_STREAM, 0, 0));
temp = 1;
setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, &temp, sizeof(int));