From 741299dc6a691c1dd1ff0f3fb5144272a2903318 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 2 Jun 2014 14:37:27 +0200 Subject: Fix getaddrinfo call --- helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper.c b/helper.c index ff4d251..2589675 100644 --- a/helper.c +++ b/helper.c @@ -57,7 +57,7 @@ int helper_connect4(char *address, int port, char *ip) memset(&hints, 0, sizeof(struct addrinfo)); hints.ai_family = AF_INET; hints.ai_socktype = SOCK_STREAM; - const int ret = getaddrinfo(NULL, address, &hints, &result); + const int ret = getaddrinfo(address, NULL, &hints, &result); if (ret != 0) { fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(ret)); return -1; -- cgit v1.2.3-55-g7522