aboutsummaryrefslogtreecommitdiff
path: root/src/sp/transport/udp
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/udp
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/udp')
-rw-r--r--src/sp/transport/udp/udp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sp/transport/udp/udp.c b/src/sp/transport/udp/udp.c
index 9f79a66f..6c0df5c4 100644
--- a/src/sp/transport/udp/udp.c
+++ b/src/sp/transport/udp/udp.c
@@ -1387,9 +1387,9 @@ udp_check_url(nng_url *url, bool listen)
}
static int
-udp_dialer_init(void **dp, nng_url *url, nni_dialer *ndialer)
+udp_dialer_init(void *arg, nng_url *url, nni_dialer *ndialer)
{
- udp_ep *ep = (void *) dp;
+ udp_ep *ep = arg;
int rv;
nni_sock *sock = nni_dialer_sock(ndialer);
@@ -1406,9 +1406,9 @@ udp_dialer_init(void **dp, nng_url *url, nni_dialer *ndialer)
}
static int
-udp_listener_init(void **lp, nng_url *url, nni_listener *nlistener)
+udp_listener_init(void *arg, nng_url *url, nni_listener *nlistener)
{
- udp_ep *ep = (void *) lp;
+ udp_ep *ep = arg;
int rv;
nni_sock *sock = nni_listener_sock(nlistener);