aboutsummaryrefslogtreecommitdiff
path: root/src/core/aio.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-04-27 19:07:03 -0700
committerGarrett D'Amore <garrett@damore.org>2025-04-27 19:07:05 -0700
commitc5b07415cc3a6a7960cb3ca2a2aaf70b1cbe3469 (patch)
tree7068cd50d8da4a1f492cfc08a25636a43a0cb194 /src/core/aio.h
parent9ebf1b2d2cc4bb850cc152168c08a1bb9e3e8ddb (diff)
downloadnng-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/core/aio.h')
-rw-r--r--src/core/aio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/aio.h b/src/core/aio.h
index a1b06e1d..5884e253 100644
--- a/src/core/aio.h
+++ b/src/core/aio.h
@@ -17,7 +17,7 @@
#include "core/taskq.h"
#include "core/thread.h"
-typedef void (*nni_aio_cancel_fn)(nni_aio *, void *, int);
+typedef void (*nni_aio_cancel_fn)(nni_aio *, void *, nng_err);
// nni_aio_init initializes an aio object. The callback is called with
// the supplied argument when the operation is complete. If NULL is