diff options
author | Rob Landley <rob@landley.net> | 2017-07-17 05:23:45 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-07-17 05:23:45 -0500 |
commit | 92b6026fa55eb1a6d76dfa549e173fc7b863dda5 (patch) | |
tree | 93d148eee63cb4aea260f3faad60ba60b75fe43e /toys/other | |
parent | d4adb3f8e2ec39674e34ed518983ed6e85560c91 (diff) | |
download | toybox-92b6026fa55eb1a6d76dfa549e173fc7b863dda5.tar.gz |
Split out xgetaddrinfo() from xconnect()
Diffstat (limited to 'toys/other')
-rw-r--r-- | toys/other/nbd_client.c | 2 |
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)); |