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/protocol/reqrep0/req.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/sp/protocol/reqrep0/req.c') diff --git a/src/sp/protocol/reqrep0/req.c b/src/sp/protocol/reqrep0/req.c index 6ddf958a..52f97d3a 100644 --- a/src/sp/protocol/reqrep0/req.c +++ b/src/sp/protocol/reqrep0/req.c @@ -536,7 +536,8 @@ req0_run_send_queue(req0_sock *s, nni_aio_completions *sent_list) // At this point, we will never give this message back to // the user, so we don't have to worry about making it // unique. We can freely clone it. - // But only do so if we need to hang onto it (for potential retries) + // But only do so if we need to hang onto it (for potential + // retries) if (ctx->retry > 0) { nni_msg_clone(ctx->req_msg); } @@ -573,7 +574,7 @@ req0_ctx_reset(req0_ctx *ctx) } static void -req0_ctx_cancel_recv(nni_aio *aio, void *arg, int rv) +req0_ctx_cancel_recv(nni_aio *aio, void *arg, nng_err rv) { req0_ctx *ctx = arg; req0_sock *s = ctx->sock; @@ -661,7 +662,7 @@ req0_ctx_recv(void *arg, nni_aio *aio) } static void -req0_ctx_cancel_send(nni_aio *aio, void *arg, int rv) +req0_ctx_cancel_send(nni_aio *aio, void *arg, nng_err rv) { req0_ctx *ctx = arg; req0_sock *s = ctx->sock; -- cgit v1.2.3-70-g09d2