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/survey0/respond.c | 4 ++-- src/sp/protocol/survey0/survey.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sp/protocol/survey0') diff --git a/src/sp/protocol/survey0/respond.c b/src/sp/protocol/survey0/respond.c index a7cdf132..ace2962a 100644 --- a/src/sp/protocol/survey0/respond.c +++ b/src/sp/protocol/survey0/respond.c @@ -117,7 +117,7 @@ resp0_ctx_init(void *carg, void *sarg) } static void -resp0_ctx_cancel_send(nni_aio *aio, void *arg, int rv) +resp0_ctx_cancel_send(nni_aio *aio, void *arg, nng_err rv) { resp0_ctx *ctx = arg; resp0_sock *s = ctx->sock; @@ -398,7 +398,7 @@ resp0_pipe_send_cb(void *arg) } static void -resp0_cancel_recv(nni_aio *aio, void *arg, int rv) +resp0_cancel_recv(nni_aio *aio, void *arg, nng_err rv) { resp0_ctx *ctx = arg; resp0_sock *s = ctx->sock; diff --git a/src/sp/protocol/survey0/survey.c b/src/sp/protocol/survey0/survey.c index 6cf73e66..c64f0bb0 100644 --- a/src/sp/protocol/survey0/survey.c +++ b/src/sp/protocol/survey0/survey.c @@ -133,7 +133,7 @@ surv0_ctx_init(void *c, void *s) } static void -surv0_ctx_cancel(nni_aio *aio, void *arg, int rv) +surv0_ctx_cancel(nni_aio *aio, void *arg, nng_err rv) { surv0_ctx *ctx = arg; surv0_sock *sock = ctx->sock; -- cgit v1.2.3-70-g09d2