From 5e06e98541ff223e7a18b6a61120532acd09d410 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 31 Dec 2021 14:13:08 -0800 Subject: Replace nni_aio_prov_set_extra with nni_aio_prov_set_data. This takes one less parameter, and is simpler. It will let us reclaim the aio_prov_extra data space as well, so that we can use it for other purposes. --- src/supplemental/websocket/websocket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/supplemental/websocket') diff --git a/src/supplemental/websocket/websocket.c b/src/supplemental/websocket/websocket.c index 416d968c..d1c9c8d5 100644 --- a/src/supplemental/websocket/websocket.c +++ b/src/supplemental/websocket/websocket.c @@ -714,7 +714,7 @@ ws_write_cancel(nni_aio *aio, void *arg, int rv) nni_mtx_unlock(&ws->mtx); return; } - frame = nni_aio_get_prov_extra(aio, 0); + frame = nni_aio_get_prov_data(aio); if (frame == ws->txframe) { nni_aio_abort(ws->txaio, rv); // We will wait for callback on the txaio to finish aio. @@ -2739,7 +2739,7 @@ ws_str_send(void *arg, nni_aio *aio) ws_frame_fini(frame); return; } - nni_aio_set_prov_extra(aio, 0, frame); + nni_aio_set_prov_data(aio, frame); nni_list_append(&ws->sendq, aio); nni_list_append(&ws->txq, frame); ws_start_write(ws); -- cgit v1.2.3-70-g09d2