summaryrefslogtreecommitdiffstats
path: root/glusterfsd
diff options
context:
space:
mode:
authorSheetalPamecha <spamecha@redhat.com>2019-06-17 15:42:20 +0530
committerAmar Tumballi <amarts@redhat.com>2019-06-18 10:53:49 +0000
commitb79222f650f6613758f036c749f5f879a54148a7 (patch)
tree663a433d7541a88362ffc149148352e8172c7cf2 /glusterfsd
parent25ad5aca23b257cdd129cd1d4518b048fbba87bb (diff)
core: fedora 30 compiler warnings
warning: ā€˜%sā€™ directive argument is null [-Wformat-overflow=] Change-Id: I69b8d47f0002c58b00d1cc947fac6f1c64e0b295 updates: bz#1193929 Signed-off-by: SheetalPamecha <spamecha@redhat.com>
Diffstat (limited to 'glusterfsd')
-rw-r--r--glusterfsd/src/glusterfsd-mgmt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c
index 1d2cd1ae6e1..e1fbe5d7234 100644
--- a/glusterfsd/src/glusterfsd-mgmt.c
+++ b/glusterfsd/src/glusterfsd-mgmt.c
@@ -1336,7 +1336,6 @@ glusterfs_handle_brick_status(rpcsvc_request_t *req)
xlator_t *brick_xl = NULL;
dict_t *dict = NULL;
dict_t *output = NULL;
- char *xname = NULL;
uint32_t cmd = 0;
char *msg = NULL;
char *brickname = NULL;
@@ -1399,7 +1398,7 @@ glusterfs_handle_brick_status(rpcsvc_request_t *req)
brick_xl = get_xlator_by_name(server_xl, brickname);
if (!brick_xl) {
- gf_log(this->name, GF_LOG_ERROR, "xlator %s is not loaded", xname);
+ gf_log(this->name, GF_LOG_ERROR, "xlator is not loaded");
ret = -1;
goto out;
}
@@ -1462,7 +1461,6 @@ out:
dict_unref(output);
free(brick_req.input.input_val);
free(brick_req.name);
- GF_FREE(xname);
GF_FREE(msg);
GF_FREE(rsp.output.output_val);