summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt
diff options
context:
space:
mode:
authorKaleb S. KEITHLEY <kkeithle@redhat.com>2016-08-22 13:22:03 -0400
committerKaleb KEITHLEY <kkeithle@redhat.com>2016-08-29 09:35:53 -0700
commit55d70915665a73e951acc505a82a1ddee00609c8 (patch)
treed112a8ca9caad3ce51d0fcc1ab9fee76bd5cf296 /xlators/mgmt
parent2c13e7e04711ef6da55e7616f064f801a41cc46d (diff)
glusterd: 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: Ibe060202efb1f175a4348ff0927a7b44303d96e6 BUG: 1369124 Signed-off-by: Kaleb S. KEITHLEY <kkeithle@redhat.com> Reviewed-on: http://review.gluster.org/15283 Reviewed-by: Niels de Vos <ndevos@redhat.com> Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Prashanth Pai <ppai@redhat.com>
Diffstat (limited to 'xlators/mgmt')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-volume-ops.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
index af1bd6d70d6..fe5d4c8e348 100644
--- a/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
+++ b/xlators/mgmt/glusterd/src/glusterd-volume-ops.c
@@ -2848,11 +2848,8 @@ glusterd_clearlocks_send_cmd (glusterd_volinfo_t *volinfo, char *cmd,
int err_len, char *mntpt)
{
int ret = -1;
- glusterd_conf_t *priv = NULL;
char abspath[PATH_MAX] = {0, };
- priv = THIS->private;
-
snprintf (abspath, sizeof (abspath), "%s/%s", mntpt, path);
ret = sys_lgetxattr (abspath, cmd, result, PATH_MAX);
if (ret < 0) {
@@ -2871,9 +2868,6 @@ int
glusterd_clearlocks_rmdir_mount (glusterd_volinfo_t *volinfo, char *mntpt)
{
int ret = -1;
- glusterd_conf_t *priv = NULL;
-
- priv = THIS->private;
ret = sys_rmdir (mntpt);
if (ret) {
@@ -2919,12 +2913,9 @@ int
glusterd_clearlocks_create_mount (glusterd_volinfo_t *volinfo, char **mntpt)
{
int ret = -1;
- glusterd_conf_t *priv = NULL;
char template[PATH_MAX] = {0,};
char *tmpl = NULL;
- priv = THIS->private;
-
snprintf (template, sizeof (template), "/tmp/%s.XXXXXX",
volinfo->volname);
tmpl = mkdtemp (template);
@@ -2997,7 +2988,6 @@ glusterd_clearlocks_get_local_client_ports (glusterd_volinfo_t *volinfo,
char **xl_opts)
{
glusterd_brickinfo_t *brickinfo = NULL;
- glusterd_conf_t *priv = NULL;
char brickname[PATH_MAX] = {0,};
int index = 0;
int ret = -1;
@@ -3011,8 +3001,6 @@ glusterd_clearlocks_get_local_client_ports (glusterd_volinfo_t *volinfo,
goto out;
}
- priv = THIS->private;
-
index = -1;
cds_list_for_each_entry (brickinfo, &volinfo->bricks, brick_list) {
index++;