aboutsummaryrefslogtreecommitdiff
path: root/src/sp/transport/ws
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-12-15 21:23:26 -0800
committerGarrett D'Amore <garrett@damore.org>2024-12-15 21:23:26 -0800
commitab460d51aee7cedd0a8d17553741b3a6dc836dc7 (patch)
treef2214ae3ecbed6110293021620d4328235ef93ee /src/sp/transport/ws
parenta43eb958e47f4c70725299845a3b7c69bbba9467 (diff)
downloadnng-ab460d51aee7cedd0a8d17553741b3a6dc836dc7.tar.gz
nng-ab460d51aee7cedd0a8d17553741b3a6dc836dc7.tar.bz2
nng-ab460d51aee7cedd0a8d17553741b3a6dc836dc7.zip
transports: all transports use the new inline approach
We can retire the old approach that used separate allocations, and all of the supporting code. This also gives us a more natural signature for the end point initializations.
Diffstat (limited to 'src/sp/transport/ws')
-rw-r--r--src/sp/transport/ws/websocket.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sp/transport/ws/websocket.c b/src/sp/transport/ws/websocket.c
index 276a8b16..33388fc9 100644
--- a/src/sp/transport/ws/websocket.c
+++ b/src/sp/transport/ws/websocket.c
@@ -520,9 +520,9 @@ error:
}
static int
-wstran_dialer_init(void **dp, nng_url *url, nni_dialer *ndialer)
+wstran_dialer_init(void *arg, nng_url *url, nni_dialer *ndialer)
{
- ws_dialer *d = (void *) dp;
+ ws_dialer *d = arg;
nni_sock *s = nni_dialer_sock(ndialer);
int rv;
char name[64];
@@ -550,9 +550,9 @@ wstran_dialer_init(void **dp, nng_url *url, nni_dialer *ndialer)
}
static int
-wstran_listener_init(void **lp, nng_url *url, nni_listener *listener)
+wstran_listener_init(void *arg, nng_url *url, nni_listener *listener)
{
- ws_listener *l = (void *) lp;
+ ws_listener *l = arg;
int rv;
nni_sock *s = nni_listener_sock(listener);
char name[64];