From 8365c3d0031c9813d64a8c64af2a9178f929cf3c Mon Sep 17 00:00:00 2001 From: "Bruce A. Mah" Date: Mon, 22 Sep 2014 15:11:59 -0700 Subject: [PATCH] Don't pass NULL when we really mean to pass 0. Fixes a warning on MacOS. --- src/iperf_client_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iperf_client_api.c b/src/iperf_client_api.c index 7f800cd..707a466 100644 --- a/src/iperf_client_api.c +++ b/src/iperf_client_api.c @@ -271,7 +271,7 @@ iperf_connect(struct iperf_test *test) /* Create and connect the control channel */ if (test->ctrl_sck < 0) // Create the control channel using an ephemeral port - test->ctrl_sck = netdial(test->settings->domain, Ptcp, test->bind_address, NULL, test->server_hostname, test->server_port); + test->ctrl_sck = netdial(test->settings->domain, Ptcp, test->bind_address, 0, test->server_hostname, test->server_port); if (test->ctrl_sck < 0) { i_errno = IECONNECT; return -1;