From cd09b06adb30135f55909c02840c339422217d95 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sun, 1 Oct 2017 14:41:43 +0100 Subject: Fixed warnings all over the places --- cmd/cmd_stat.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'cmd/cmd_stat.c') diff --git a/cmd/cmd_stat.c b/cmd/cmd_stat.c index 73b7fa6..dc2a097 100644 --- a/cmd/cmd_stat.c +++ b/cmd/cmd_stat.c @@ -5,7 +5,6 @@ void *cmd_stat(void *data) char *param = (char *)data; char *ret = NULL; - int i; int count; sds params; sds out_result; @@ -25,16 +24,16 @@ void *cmd_stat(void *data) out_result = sdscat(out_result,"+----------+----------+\n"); //cmd_success - snprintf(buf,buf_size,"| CMD_SUCC | %08s |\n", tokens[0]); + snprintf(buf,buf_size,"| CMD_SUCC | %8s |\n", tokens[0]); out_result = sdscat(out_result, buf); //cmd_err - snprintf(buf,buf_size,"| CMD_ERR | %08s |\n", tokens[1]); + snprintf(buf,buf_size,"| CMD_ERR | %8s |\n", tokens[1]); out_result = sdscat(out_result, buf); //ipc tx - snprintf(buf,buf_size,"| IPC_TX | %08s |\n", tokens[2]); + snprintf(buf,buf_size,"| IPC_TX | %8s |\n", tokens[2]); out_result = sdscat(out_result, buf); //ipc rx - snprintf(buf,buf_size,"| IPC_RX | %08s |\n", tokens[3]); + snprintf(buf,buf_size,"| IPC_RX | %8s |\n", tokens[3]); out_result = sdscat(out_result, buf); out_result = sdscat(out_result,"+----------+----------+"); -- cgit v1.2.3