aboutsummaryrefslogtreecommitdiff
path: root/src/nng.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nng.c')
-rw-r--r--src/nng.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nng.c b/src/nng.c
index e601f785..b3179988 100644
--- a/src/nng.c
+++ b/src/nng.c
@@ -1116,7 +1116,7 @@ nng_aio_alloc(nng_aio **app, void (*cb)(void *), void *arg)
if ((rv = nni_init()) != 0) {
return (rv);
}
- if ((rv = nni_aio_init(&aio, (nni_cb) cb, arg)) == 0) {
+ if ((rv = nni_aio_alloc(&aio, (nni_cb) cb, arg)) == 0) {
nng_aio_set_timeout(aio, NNG_DURATION_DEFAULT);
*app = aio;
}
@@ -1126,7 +1126,7 @@ nng_aio_alloc(nng_aio **app, void (*cb)(void *), void *arg)
void
nng_aio_free(nng_aio *aio)
{
- nni_aio_fini(aio);
+ nni_aio_free(aio);
}
void