From: Antonio Borneo Date: Fri, 4 Jan 2019 09:53:49 +0000 (+0100) Subject: log: add const qualifier to commands struct X-Git-Tag: v0.11.0-rc1~764 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=6949b5393d9fb6511ddef13ce0bef1a147e7f962;ds=sidebyside 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 Reviewed-on: http://openocd.zylin.com/5009 Reviewed-by: Tomas Vanek Tested-by: jenkins --- diff --git a/src/helper/log.c b/src/helper/log.c index f9807747b5..90653c41d4 100644 --- a/src/helper/log.c +++ b/src/helper/log.c @@ -236,7 +236,7 @@ COMMAND_HANDLER(handle_log_output_command) return ERROR_OK; } -static struct command_registration log_command_handlers[] = { +static const struct command_registration log_command_handlers[] = { { .name = "log_output", .handler = handle_log_output_command,