From c6df64d90ff9799b9f5970c4897e2b9a55e2ce69 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Fri, 7 Jul 2017 18:17:04 -0700 Subject: Clean up some unused variables. --- src/protocol/pubsub/pub.c | 1 - src/protocol/pubsub/sub.c | 1 - src/protocol/reqrep/req.c | 2 -- 3 files changed, 4 deletions(-) (limited to 'src/protocol') diff --git a/src/protocol/pubsub/pub.c b/src/protocol/pubsub/pub.c index 58d80d44..e3b37f1a 100644 --- a/src/protocol/pubsub/pub.c +++ b/src/protocol/pubsub/pub.c @@ -176,7 +176,6 @@ nni_pub_pipe_stop(void *arg) { nni_pub_pipe *pp = arg; nni_pub_sock *pub = pp->pub; - int refcnt; nni_aio_stop(&pp->aio_getq); nni_aio_stop(&pp->aio_send); diff --git a/src/protocol/pubsub/sub.c b/src/protocol/pubsub/sub.c index 9e8fa5a7..09a724e2 100644 --- a/src/protocol/pubsub/sub.c +++ b/src/protocol/pubsub/sub.c @@ -138,7 +138,6 @@ nni_sub_recv_cb(void *arg) nni_sub_pipe *sp = arg; nni_sub_sock *sub = sp->sub; nni_msgq *urq = sub->urq; - nni_msg *msg; if (nni_aio_result(&sp->aio_recv) != 0) { nni_pipe_stop(sp->pipe); diff --git a/src/protocol/reqrep/req.c b/src/protocol/reqrep/req.c index b951c9a0..f32fd66f 100644 --- a/src/protocol/reqrep/req.c +++ b/src/protocol/reqrep/req.c @@ -329,7 +329,6 @@ static void nni_req_sendraw_cb(void *arg) { nni_req_pipe *rp = arg; - nni_msg *msg; if (nni_aio_result(&rp->aio_sendraw) != 0) { nni_msg_free(rp->aio_sendraw.a_msg); @@ -455,7 +454,6 @@ nni_req_resend(nni_req_sock *req) { nni_req_pipe *rp; nni_msg *msg; - int i; // Note: This routine should be called with the socket lock held. // Also, this should only be called while handling cooked mode -- cgit v1.2.3-70-g09d2