aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-11-03 08:29:55 -0800
committerGarrett D'Amore <garrett@damore.org>2024-11-03 08:30:34 -0800
commit8249242a9325a27e57107d78bfa168e918cc4f7a (patch)
tree3fa7a7a0dd66c23684b731f6b2686e9b6ea7a574 /src/supplemental
parenta5807e45b1badfb5d0cb4f697e1873a8ece59a30 (diff)
downloadnng-8249242a9325a27e57107d78bfa168e918cc4f7a.tar.gz
nng-8249242a9325a27e57107d78bfa168e918cc4f7a.tar.bz2
nng-8249242a9325a27e57107d78bfa168e918cc4f7a.zip
Remove untyped nng_pipe_get, support for untyped sockaddr set.
This is a step on the path to removing unsafe untyped option accesses.
Diffstat (limited to 'src/supplemental')
-rw-r--r--src/supplemental/websocket/websocket_test.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/supplemental/websocket/websocket_test.c b/src/supplemental/websocket/websocket_test.c
index 1b48aff5..d784c1bc 100644
--- a/src/supplemental/websocket/websocket_test.c
+++ b/src/supplemental/websocket/websocket_test.c
@@ -20,7 +20,6 @@ test_websocket_wildcard(void)
nng_stream_listener *l = NULL;
nng_sockaddr sa1;
nng_sockaddr sa2;
- size_t sz;
nng_aio *daio = NULL;
nng_aio *laio = NULL;
nng_aio *aio1 = NULL;
@@ -38,9 +37,7 @@ test_websocket_wildcard(void)
// Let's get the address we're going to use to dial -- also check
// that it is correct.
- sz = sizeof(sa1);
- NUTS_PASS(nng_stream_listener_get(l, NNG_OPT_LOCADDR, &sa1, &sz));
- NUTS_TRUE(sz == sizeof(sa1));
+ NUTS_PASS(nng_stream_listener_get_addr(l, NNG_OPT_LOCADDR, &sa1));
NUTS_TRUE(sa1.s_in.sa_port != 0);
NUTS_TRUE(sa1.s_family == NNG_AF_INET);
NUTS_TRUE(nuts_be32(sa1.s_in.sa_addr) == 0x7F000001u);