diff options
Diffstat (limited to 'src/sp/protocol/reqrep0')
| -rw-r--r-- | src/sp/protocol/reqrep0/rep.c | 4 | ||||
| -rw-r--r-- | src/sp/protocol/reqrep0/req.c | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/sp/protocol/reqrep0/rep.c b/src/sp/protocol/reqrep0/rep.c index 4a30e967..e84440a7 100644 --- a/src/sp/protocol/reqrep0/rep.c +++ b/src/sp/protocol/reqrep0/rep.c @@ -111,7 +111,7 @@ rep0_ctx_init(void *carg, void *sarg) } static void -rep0_ctx_cancel_send(nni_aio *aio, void *arg, int rv) +rep0_ctx_cancel_send(nni_aio *aio, void *arg, nng_err rv) { rep0_ctx *ctx = arg; rep0_sock *s = ctx->sock; @@ -400,7 +400,7 @@ rep0_pipe_send_cb(void *arg) } static void -rep0_cancel_recv(nni_aio *aio, void *arg, int rv) +rep0_cancel_recv(nni_aio *aio, void *arg, nng_err rv) { rep0_ctx *ctx = arg; rep0_sock *s = ctx->sock; diff --git a/src/sp/protocol/reqrep0/req.c b/src/sp/protocol/reqrep0/req.c index 6ddf958a..52f97d3a 100644 --- a/src/sp/protocol/reqrep0/req.c +++ b/src/sp/protocol/reqrep0/req.c @@ -536,7 +536,8 @@ req0_run_send_queue(req0_sock *s, nni_aio_completions *sent_list) // At this point, we will never give this message back to // the user, so we don't have to worry about making it // unique. We can freely clone it. - // But only do so if we need to hang onto it (for potential retries) + // But only do so if we need to hang onto it (for potential + // retries) if (ctx->retry > 0) { nni_msg_clone(ctx->req_msg); } @@ -573,7 +574,7 @@ req0_ctx_reset(req0_ctx *ctx) } static void -req0_ctx_cancel_recv(nni_aio *aio, void *arg, int rv) +req0_ctx_cancel_recv(nni_aio *aio, void *arg, nng_err rv) { req0_ctx *ctx = arg; req0_sock *s = ctx->sock; @@ -661,7 +662,7 @@ req0_ctx_recv(void *arg, nni_aio *aio) } static void -req0_ctx_cancel_send(nni_aio *aio, void *arg, int rv) +req0_ctx_cancel_send(nni_aio *aio, void *arg, nng_err rv) { req0_ctx *ctx = arg; req0_sock *s = ctx->sock; |
