diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-04-27 19:07:03 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-04-27 19:07:05 -0700 |
| commit | c5b07415cc3a6a7960cb3ca2a2aaf70b1cbe3469 (patch) | |
| tree | 7068cd50d8da4a1f492cfc08a25636a43a0cb194 /src/sp/transport/udp | |
| parent | 9ebf1b2d2cc4bb850cc152168c08a1bb9e3e8ddb (diff) | |
| download | nng-c5b07415cc3a6a7960cb3ca2a2aaf70b1cbe3469.tar.gz nng-c5b07415cc3a6a7960cb3ca2a2aaf70b1cbe3469.tar.bz2 nng-c5b07415cc3a6a7960cb3ca2a2aaf70b1cbe3469.zip | |
AIO: Use nng_err for cancellation callback instead of int.
This is part of our work to improve type safety/awareness, and also
improve debugger support, for NNG error codes. There are still quite
a few more but this should help.
Diffstat (limited to 'src/sp/transport/udp')
| -rw-r--r-- | src/sp/transport/udp/udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp/transport/udp/udp.c b/src/sp/transport/udp/udp.c index b068be03..2e85fd0f 100644 --- a/src/sp/transport/udp/udp.c +++ b/src/sp/transport/udp/udp.c @@ -999,7 +999,7 @@ udp_pipe_send(void *arg, nni_aio *aio) } static void -udp_pipe_recv_cancel(nni_aio *aio, void *arg, int rv) +udp_pipe_recv_cancel(nni_aio *aio, void *arg, nng_err rv) { udp_pipe *p = arg; udp_ep *ep = p->ep; @@ -1430,7 +1430,7 @@ udp_listener_init(void *arg, nng_url *url, nni_listener *nlistener) } static void -udp_ep_cancel(nni_aio *aio, void *arg, int rv) +udp_ep_cancel(nni_aio *aio, void *arg, nng_err rv) { udp_ep *ep = arg; nni_mtx_lock(&ep->mtx); |
