diff --git a/perftests/recv-zeros/main.c b/perftests/recv-zeros/main.c index ec430161..e374b6e4 100644 --- a/perftests/recv-zeros/main.c +++ b/perftests/recv-zeros/main.c @@ -44,7 +44,7 @@ main(int argc, char ** argv) } /* Resolve the address. */ - if ((sa = sock_resolve_one(addr)) == NULL) { + if ((sa = sock_resolve_one(addr, 0)) == NULL) { warn0("sock_resolve_one"); goto err1; } diff --git a/spiped/main.c b/spiped/main.c index 35b410cc..71066b51 100644 --- a/spiped/main.c +++ b/spiped/main.c @@ -275,7 +275,7 @@ main(int argc, char * argv[]) } /* Resolve source address. */ - while ((sa_s = sock_resolve_one(opt_s)) == NULL) { + while ((sa_s = sock_resolve_one(opt_s, 0)) == NULL) { if (!opt_D) { warnp("Error resolving socket address: %s", opt_s); goto err1; diff --git a/tests/nc-server/simple_server.c b/tests/nc-server/simple_server.c index c85c934a..8a4d4541 100644 --- a/tests/nc-server/simple_server.c +++ b/tests/nc-server/simple_server.c @@ -277,7 +277,7 @@ simple_server(const char * addr, size_t nconn_max, size_t shutdown_after, int sock; /* Resolve the address. */ - if ((sa = sock_resolve_one(addr)) == NULL) { + if ((sa = sock_resolve_one(addr, 0)) == NULL) { warn0("sock_resolve_one"); goto err0; }