diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-07-05 15:08:02 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-07-05 15:08:02 -0700 |
| commit | 0b08b59786e4af19f57bf00ebc20ee8f96453679 (patch) | |
| tree | 4dad7378b2410a32c3892181baf180551c1b6e4f /src/transport/inproc | |
| parent | 56b4dba80ed37469d6302337f38e6539dd78889f (diff) | |
| download | nng-0b08b59786e4af19f57bf00ebc20ee8f96453679.tar.gz nng-0b08b59786e4af19f57bf00ebc20ee8f96453679.tar.bz2 nng-0b08b59786e4af19f57bf00ebc20ee8f96453679.zip | |
Return void on send & recv for transports.
Diffstat (limited to 'src/transport/inproc')
| -rw-r--r-- | src/transport/inproc/inproc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/transport/inproc/inproc.c b/src/transport/inproc/inproc.c index b1208e25..52ed582a 100644 --- a/src/transport/inproc/inproc.c +++ b/src/transport/inproc/inproc.c @@ -154,7 +154,7 @@ nni_inproc_pipe_fini(void *arg) } -static int +static void nni_inproc_pipe_send(void *arg, nni_aio *aio) { nni_inproc_pipe *pipe = arg; @@ -168,21 +168,20 @@ nni_inproc_pipe_send(void *arg, nni_aio *aio) h = nni_msg_header(msg); l = nni_msg_header_len(msg); if ((rv = nni_msg_prepend(msg, h, l)) != 0) { - return (rv); + nni_aio_finish(aio, rv, aio->a_count); + return; } nni_msg_trunc_header(msg, l); nni_msgq_aio_put(pipe->wq, aio); - return (0); } -static int +static void nni_inproc_pipe_recv(void *arg, nni_aio *aio) { nni_inproc_pipe *pipe = arg; nni_msgq_aio_get(pipe->rq, aio); - return (0); } |
