aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/testing/marry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/marry.c b/src/testing/marry.c
index 2fc0e9ac..cfaec6cc 100644
--- a/src/testing/marry.c
+++ b/src/testing/marry.c
@@ -281,8 +281,8 @@ nuts_marry_ex(
replace_port_zero(url, addr, port);
url = addr;
}
- if (((rv = nng_setopt_ms(s2, NNG_OPT_RECONNMINT, 10)) != 0) ||
- ((rv = nng_setopt_ms(s2, NNG_OPT_RECONNMAXT, 10)) != 0)) {
+ if (((rv = nng_socket_set_ms(s2, NNG_OPT_RECONNMINT, 10)) != 0) ||
+ ((rv = nng_socket_set_ms(s2, NNG_OPT_RECONNMAXT, 10)) != 0)) {
goto done;
}
if ((rv = nng_dial(s2, url, NULL, 0)) != 0) {