From b79222f650f6613758f036c749f5f879a54148a7 Mon Sep 17 00:00:00 2001 From: SheetalPamecha Date: Mon, 17 Jun 2019 15:42:20 +0530 Subject: core: fedora 30 compiler warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit warning: ā€˜%s’ directive argument is null [-Wformat-overflow=] Change-Id: I69b8d47f0002c58b00d1cc947fac6f1c64e0b295 updates: bz#1193929 Signed-off-by: SheetalPamecha --- glusterfsd/src/glusterfsd-mgmt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'glusterfsd') 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); -- cgit