From 44fadb7042fbfdf75f20572c59e410f406bb82f4 Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Wed, 29 Dec 2021 10:13:09 -0500 Subject: don't use deprecated functions in tests (#1560) --- tests/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/device.c') diff --git a/tests/device.c b/tests/device.c index 7d10cbf1..77da41b6 100644 --- a/tests/device.c +++ b/tests/device.c @@ -82,8 +82,8 @@ Main({ So(nng_dial(end2, addr2, NULL, 0) == 0); tmo = SECOND(1); - So(nng_setopt_ms(end1, NNG_OPT_RECVTIMEO, tmo) == 0); - So(nng_setopt_ms(end2, NNG_OPT_RECVTIMEO, tmo) == 0); + So(nng_socket_set_ms(end1, NNG_OPT_RECVTIMEO, tmo) == 0); + So(nng_socket_set_ms(end2, NNG_OPT_RECVTIMEO, tmo) == 0); nng_msleep(100); Convey("Device can send and receive", { -- cgit v1.2.3-70-g09d2