log: add const qualifier to commands struct

The struct log_command_handlers[] is never modified.
Add const qualifier to it.

Change-Id: I5785aeb09ae9c23eaf7c34a05b88d0c7285f2d78
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5009
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
This commit is contained in:
Antonio Borneo 2019-01-04 10:53:49 +01:00 committed by Tomas Vanek
parent 92c50fda2b
commit 6949b5393d
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ COMMAND_HANDLER(handle_log_output_command)
return ERROR_OK; return ERROR_OK;
} }
static struct command_registration log_command_handlers[] = { static const struct command_registration log_command_handlers[] = {
{ {
.name = "log_output", .name = "log_output",
.handler = handle_log_output_command, .handler = handle_log_output_command,