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/tcp | |
| 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/tcp')
| -rw-r--r-- | src/transport/tcp/tcp.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/transport/tcp/tcp.c b/src/transport/tcp/tcp.c index b6520080..86b151cf 100644 --- a/src/transport/tcp/tcp.c +++ b/src/transport/tcp/tcp.c @@ -325,7 +325,7 @@ nni_tcp_cancel_tx(nni_aio *aio) } -static int +static void nni_tcp_pipe_send(void *arg, nni_aio *aio) { nni_tcp_pipe *pipe = arg; @@ -338,7 +338,7 @@ nni_tcp_pipe_send(void *arg, nni_aio *aio) if (nni_aio_start(aio, nni_tcp_cancel_tx, pipe) != 0) { nni_mtx_unlock(&pipe->mtx); - return (0); + return; } pipe->user_txaio = aio; @@ -355,7 +355,6 @@ nni_tcp_pipe_send(void *arg, nni_aio *aio) nni_plat_tcp_aio_send(pipe->tsp, &pipe->txaio); nni_mtx_unlock(&pipe->mtx); - return (0); } @@ -373,7 +372,7 @@ nni_tcp_cancel_rx(nni_aio *aio) } -static int +static void nni_tcp_pipe_recv(void *arg, nni_aio *aio) { nni_tcp_pipe *pipe = arg; @@ -382,7 +381,7 @@ nni_tcp_pipe_recv(void *arg, nni_aio *aio) if (nni_aio_start(aio, nni_tcp_cancel_rx, pipe) != 0) { nni_mtx_unlock(&pipe->mtx); - return (0); + return; } pipe->user_rxaio = aio; @@ -395,7 +394,6 @@ nni_tcp_pipe_recv(void *arg, nni_aio *aio) nni_plat_tcp_aio_recv(pipe->tsp, &pipe->rxaio); nni_mtx_unlock(&pipe->mtx); - return (0); } |
