Skip to content

Commit

Permalink
Adjust for new argument in sock_resolve_one()
Browse files Browse the repository at this point in the history
  • Loading branch information
gperciva committed Jul 16, 2022
1 parent ba4646e commit 0d7f6da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion perftests/recv-zeros/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion spiped/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/nc-server/simple_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0d7f6da

Please sign in to comment.