From c5b07415cc3a6a7960cb3ca2a2aaf70b1cbe3469 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 27 Apr 2025 19:07:03 -0700 Subject: 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. --- src/sp/transport/socket/sockfd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sp/transport/socket') diff --git a/src/sp/transport/socket/sockfd.c b/src/sp/transport/socket/sockfd.c index 9eea18f6..5138afaa 100644 --- a/src/sp/transport/socket/sockfd.c +++ b/src/sp/transport/socket/sockfd.c @@ -382,7 +382,7 @@ recv_error: } static void -sfd_tran_pipe_send_cancel(nni_aio *aio, void *arg, int rv) +sfd_tran_pipe_send_cancel(nni_aio *aio, void *arg, nng_err rv) { sfd_tran_pipe *p = arg; @@ -470,7 +470,7 @@ sfd_tran_pipe_send(void *arg, nni_aio *aio) } static void -sfd_tran_pipe_recv_cancel(nni_aio *aio, void *arg, int rv) +sfd_tran_pipe_recv_cancel(nni_aio *aio, void *arg, nng_err rv) { sfd_tran_pipe *p = arg; @@ -728,7 +728,7 @@ sfd_tran_listener_init(void *arg, nng_url *url, nni_listener *nlistener) } static void -sfd_tran_ep_cancel(nni_aio *aio, void *arg, int rv) +sfd_tran_ep_cancel(nni_aio *aio, void *arg, nng_err rv) { sfd_tran_ep *ep = arg; nni_mtx_lock(&ep->mtx); -- cgit v1.2.3-70-g09d2