diff options
Diffstat (limited to 'src/protocol/survey0/respond.c')
| -rw-r--r-- | src/protocol/survey0/respond.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/protocol/survey0/respond.c b/src/protocol/survey0/respond.c index b4ffc917..06010d99 100644 --- a/src/protocol/survey0/respond.c +++ b/src/protocol/survey0/respond.c @@ -281,8 +281,8 @@ resp0_pipe_fini(void *arg) nni_aio_set_msg(p->aio_recv, NULL); nni_msg_free(msg); } - nni_aio_fini(p->aio_send); - nni_aio_fini(p->aio_recv); + nni_aio_free(p->aio_send); + nni_aio_free(p->aio_recv); } static int @@ -291,8 +291,8 @@ resp0_pipe_init(void *arg, nni_pipe *npipe, void *s) resp0_pipe *p = arg; int rv; - if (((rv = nni_aio_init(&p->aio_recv, resp0_pipe_recv_cb, p)) != 0) || - ((rv = nni_aio_init(&p->aio_send, resp0_pipe_send_cb, p)) != 0)) { + if (((rv = nni_aio_alloc(&p->aio_recv, resp0_pipe_recv_cb, p)) != 0) || + ((rv = nni_aio_alloc(&p->aio_send, resp0_pipe_send_cb, p)) != 0)) { resp0_pipe_fini(p); return (rv); } |
