aboutsummaryrefslogtreecommitdiff
path: root/src/iperf_client_api.c
diff options
context:
space:
mode:
authorBruce A. Mah <bmah@es.net>2014-09-22 15:11:59 -0700
committerBruce A. Mah <bmah@es.net>2014-09-22 15:11:59 -0700
commit8365c3d0031c9813d64a8c64af2a9178f929cf3c (patch)
tree5663d07fd6d38ab01115b62fe6198bdd31cc7e80 /src/iperf_client_api.c
parent9fc0149e1c249d580082d8fbbfd43c83c1ebc6a0 (diff)
downloadiperf3-8365c3d0031c9813d64a8c64af2a9178f929cf3c.tar.gz
Don't pass NULL when we really mean to pass 0.
Fixes a warning on MacOS.
Diffstat (limited to 'src/iperf_client_api.c')
-rw-r--r--src/iperf_client_api.c2
1 files changed, 1 insertions, 1 deletions
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;