Don't pass NULL when we really mean to pass 0.
Fixes a warning on MacOS.
Этот коммит содержится в:
родитель
9fc0149e1c
Коммит
8365c3d003
@ -271,7 +271,7 @@ iperf_connect(struct iperf_test *test)
|
|||||||
/* Create and connect the control channel */
|
/* Create and connect the control channel */
|
||||||
if (test->ctrl_sck < 0)
|
if (test->ctrl_sck < 0)
|
||||||
// Create the control channel using an ephemeral port
|
// 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) {
|
if (test->ctrl_sck < 0) {
|
||||||
i_errno = IECONNECT;
|
i_errno = IECONNECT;
|
||||||
return -1;
|
return -1;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user