From b21d7805523a407a14567017edbdef57ca81781f Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 8 Jan 2020 20:34:26 -0800 Subject: fixes #1094 Consider in-lining task and aio This only does it for rep, but it also has changes that should increase the overall test coverage for the REP protocol --- src/nng.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nng.c') 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 -- cgit v1.2.3-70-g09d2