summaryrefslogtreecommitdiffstats
path: root/xlators/features/changelog/src/changelog-ev-handle.c
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2016-08-22 12:11:24 -0400
committerKaleb KEITHLEY <kkeithle@redhat.com>2016-08-29 09:21:56 -0700
commitae2ddb59381c37d79b4f1ce13028f02e9fffea47 (patch)
treed55b3fa9efc9302bc3bfddbe134fb25959cafb1b /xlators/features/changelog/src/changelog-ev-handle.c
parent4640061a357632258541141163764314993e40ca (diff)
core: fix unused variable warnings/errors
http://review.gluster.org/14085 fixes a/the "leak" - via the generated rpc/xdr headers - of pragmas that mask these warnings. However 14085 won't pass the smoke test until all the warnings are fixed. Change-Id: I3d8a7a3de35058aa97eab59d3f59208396298b03 BUG: 1369124 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/15246 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'xlators/features/changelog/src/changelog-ev-handle.c')
-rw-r--r--xlators/features/changelog/src/changelog-ev-handle.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/xlators/features/changelog/src/changelog-ev-handle.c b/xlators/features/changelog/src/changelog-ev-handle.c
index 77637c7beec..7fa6a89ea98 100644
--- a/xlators/features/changelog/src/changelog-ev-handle.c
+++ b/xlators/features/changelog/src/changelog-ev-handle.c
@@ -74,7 +74,6 @@ changelog_dispatch_vec (call_frame_t *frame, xlator_t *this,
int idx = 0;
int count = 0;
int ret = 0;
- unsigned long range = 0;
unsigned long sequence = 0;
rbuf_iovec_t *rvec = NULL;
struct ev_rpc *erpc = NULL;
@@ -83,7 +82,7 @@ changelog_dispatch_vec (call_frame_t *frame, xlator_t *this,
/* dispatch NR_IOVEC IO vectors at a time. */
erpc = data;
- RLIST_GET_SEQ (erpc->rlist, sequence, range);
+ sequence = erpc->rlist->seq[0];
rlist_iter_init (&riter, erpc->rlist);
@@ -232,7 +231,6 @@ changelog_ev_connector (void *data)
void
changelog_ev_cleanup_connections (xlator_t *this, changelog_clnt_t *c_clnt)
{
- int ret = 0;
changelog_rpc_clnt_t *crpc = NULL;
/* cleanup active connections */
@@ -287,11 +285,9 @@ put_client (changelog_clnt_t *c_clnt, changelog_rpc_clnt_t *crpc)
void
_dispatcher (rbuf_list_t *rlist, void *arg)
{
- int ret = 0;
xlator_t *this = NULL;
changelog_clnt_t *c_clnt = NULL;
changelog_rpc_clnt_t *crpc = NULL;
- changelog_rpc_clnt_t *tmp = NULL;
struct ev_rpc erpc = {0,};
struct list_head *next = NULL;
@@ -306,9 +302,9 @@ _dispatcher (rbuf_list_t *rlist, void *arg)
if (!crpc)
break;
erpc.rpc = crpc->rpc;
- ret = changelog_invoke_rpc (this, crpc->rpc,
- &changelog_ev_program,
- CHANGELOG_REV_PROC_EVENT, &erpc);
+ (void) changelog_invoke_rpc (this, crpc->rpc,
+ &changelog_ev_program,
+ CHANGELOG_REV_PROC_EVENT, &erpc);
put_client (c_clnt, crpc);
}
}