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/core/aio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/aio.c') diff --git a/src/core/aio.c b/src/core/aio.c index 9b0fe4d5..4c4c78b6 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -762,7 +762,7 @@ nni_aio_iov_advance(nni_aio *aio, size_t n) } static void -nni_sleep_cancel(nng_aio *aio, void *arg, int rv) +nni_sleep_cancel(nng_aio *aio, void *arg, nng_err rv) { NNI_ARG_UNUSED(arg); nni_aio_expire_q *eq = aio->a_expire_q; -- cgit v1.2.3-70-g09d2