summaryrefslogtreecommitdiff
path: root/tests/tcp6.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcp6.c')
-rw-r--r--tests/tcp6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tcp6.c b/tests/tcp6.c
index ecc55a46..846b2c8e 100644
--- a/tests/tcp6.c
+++ b/tests/tcp6.c
@@ -53,7 +53,7 @@ check_props_v6(nng_msg *msg)
z = sizeof(nng_sockaddr);
p = nng_msg_get_pipe(msg);
So(nng_pipe_id(p) > 0);
- So(nng_pipe_getopt(p, NNG_OPT_LOCADDR, &la, &z) == 0);
+ So(nng_pipe_get(p, NNG_OPT_LOCADDR, &la, &z) == 0);
So(z == sizeof(la));
So(la.s_family == NNG_AF_INET6);
// So(la.s_in.sa_port == (trantest_port - 1));
@@ -65,7 +65,7 @@ check_props_v6(nng_msg *msg)
z = sizeof(nng_sockaddr);
p = nng_msg_get_pipe(msg);
So(nng_pipe_id(p) > 0);
- So(nng_pipe_getopt(p, NNG_OPT_REMADDR, &ra, &z) == 0);
+ So(nng_pipe_get(p, NNG_OPT_REMADDR, &ra, &z) == 0);
So(z == sizeof(ra));
So(ra.s_family == NNG_AF_INET6);
So(ra.s_in6.sa_port != 0);