From 5914e40c2ff7fcf346c90705785f3fb7650a9fdc Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 29 Jan 2018 13:27:52 -0800 Subject: Expose scatter/gather I/O vectors; we will use for HTTP API. --- src/transport/ipc/ipc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/transport/ipc') diff --git a/src/transport/ipc/ipc.c b/src/transport/ipc/ipc.c index 62751d86..9e8a3829 100644 --- a/src/transport/ipc/ipc.c +++ b/src/transport/ipc/ipc.c @@ -233,7 +233,7 @@ nni_ipc_pipe_send_cb(void *arg) NNI_ASSERT(txaio->a_niov != 0); if (txaio->a_iov[0].iov_len > n) { txaio->a_iov[0].iov_len -= n; - txaio->a_iov[0].iov_buf += n; + NNI_INCPTR(txaio->a_iov[0].iov_buf, n); break; } n -= txaio->a_iov[0].iov_len; @@ -285,7 +285,7 @@ nni_ipc_pipe_recv_cb(void *arg) NNI_ASSERT(rxaio->a_niov != 0); if (rxaio->a_iov[0].iov_len > n) { rxaio->a_iov[0].iov_len -= n; - rxaio->a_iov[0].iov_buf += n; + NNI_INCPTR(rxaio->a_iov[0].iov_buf, n); break; } n -= rxaio->a_iov[0].iov_len; -- cgit v1.2.3-70-g09d2