mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-12-18 16:11:17 +01:00
CLEANUP: mworker/cli: remove useless variable
The msg variable is declared and free but never used, this patch removes it.
This commit is contained in:
parent
a15f0461a0
commit
dabe8856ad
@ -864,8 +864,6 @@ static int cli_io_handler_show_proc(struct appctx *appctx)
|
|||||||
/* displays old processes */
|
/* displays old processes */
|
||||||
|
|
||||||
if (old) {
|
if (old) {
|
||||||
char *msg = NULL;
|
|
||||||
|
|
||||||
chunk_appendf(&trash, "# old workers\n");
|
chunk_appendf(&trash, "# old workers\n");
|
||||||
list_for_each_entry(child, &proc_list, list) {
|
list_for_each_entry(child, &proc_list, list) {
|
||||||
up = date.tv_sec - child->timestamp;
|
up = date.tv_sec - child->timestamp;
|
||||||
@ -884,7 +882,6 @@ static int cli_io_handler_show_proc(struct appctx *appctx)
|
|||||||
ha_free(&uptime);
|
ha_free(&uptime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(msg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (applet_putchk(appctx, &trash) == -1)
|
if (applet_putchk(appctx, &trash) == -1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user