aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/http/http_client.c
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/supplemental/http/http_client.c
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/supplemental/http/http_client.c')
-rw-r--r--src/supplemental/http/http_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/supplemental/http/http_client.c b/src/supplemental/http/http_client.c
index 5c408718..06215ca0 100644
--- a/src/supplemental/http/http_client.c
+++ b/src/supplemental/http/http_client.c
@@ -175,7 +175,7 @@ nni_http_client_get(
}
static void
-http_dial_cancel(nni_aio *aio, void *arg, int rv)
+http_dial_cancel(nni_aio *aio, void *arg, nng_err rv)
{
nni_http_client *c = arg;
nni_mtx_lock(&c->mtx);
@@ -366,7 +366,7 @@ error:
}
static void
-http_txn_cancel(nni_aio *aio, void *arg, int rv)
+http_txn_cancel(nni_aio *aio, void *arg, nng_err rv)
{
http_txn *txn = arg;
nni_mtx_lock(&http_txn_lk);