aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-07-07 18:17:04 -0700
committerGarrett D'Amore <garrett@damore.org>2017-07-07 18:17:04 -0700
commitc6df64d90ff9799b9f5970c4897e2b9a55e2ce69 (patch)
treea20908f2b8e62cfeb8bcca426aa4c9ce66860b58 /src
parentea7d67c33ef28f4155b04b322ebbf778f1dbaa2a (diff)
downloadnng-c6df64d90ff9799b9f5970c4897e2b9a55e2ce69.tar.gz
nng-c6df64d90ff9799b9f5970c4897e2b9a55e2ce69.tar.bz2
nng-c6df64d90ff9799b9f5970c4897e2b9a55e2ce69.zip
Clean up some unused variables.
Diffstat (limited to 'src')
-rw-r--r--src/platform/posix/posix_resolv_gai.c1
-rw-r--r--src/protocol/pubsub/pub.c1
-rw-r--r--src/protocol/pubsub/sub.c1
-rw-r--r--src/protocol/reqrep/req.c2
4 files changed, 0 insertions, 5 deletions
diff --git a/src/platform/posix/posix_resolv_gai.c b/src/platform/posix/posix_resolv_gai.c
index 82febf6e..4283e9f6 100644
--- a/src/platform/posix/posix_resolv_gai.c
+++ b/src/platform/posix/posix_resolv_gai.c
@@ -214,7 +214,6 @@ nni_posix_resolv_task(void *arg)
break;
}
-done:
if (results != NULL) {
freeaddrinfo(results);
}
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