aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/websocket
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2021-12-31 14:13:08 -0800
committerGarrett D'Amore <garrett@damore.org>2021-12-31 16:11:25 -0800
commit5e06e98541ff223e7a18b6a61120532acd09d410 (patch)
tree73d3b17ae7676a1e730e190d29f9e2661959b6a2 /src/supplemental/websocket
parent2f66b99830e6dc731e4f631ea743771df701659e (diff)
downloadnng-5e06e98541ff223e7a18b6a61120532acd09d410.tar.gz
nng-5e06e98541ff223e7a18b6a61120532acd09d410.tar.bz2
nng-5e06e98541ff223e7a18b6a61120532acd09d410.zip
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.
Diffstat (limited to 'src/supplemental/websocket')
-rw-r--r--src/supplemental/websocket/websocket.c4
1 files changed, 2 insertions, 2 deletions
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);