From 92b6026fa55eb1a6d76dfa549e173fc7b863dda5 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 17 Jul 2017 05:23:45 -0500 Subject: Split out xgetaddrinfo() from xconnect() --- toys/other/nbd_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/other/nbd_client.c') 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)); -- cgit v1.2.3