diff options
author | Bruce A. Mah <bmah@es.net> | 2014-09-22 15:11:59 -0700 |
---|---|---|
committer | Bruce A. Mah <bmah@es.net> | 2014-09-22 15:11:59 -0700 |
commit | 8365c3d0031c9813d64a8c64af2a9178f929cf3c (patch) | |
tree | 5663d07fd6d38ab01115b62fe6198bdd31cc7e80 /src/iperf_client_api.c | |
parent | 9fc0149e1c249d580082d8fbbfd43c83c1ebc6a0 (diff) | |
download | iperf3-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.c | 2 |
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; |