From 6949b5393d9fb6511ddef13ce0bef1a147e7f962 Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Fri, 4 Jan 2019 10:53:49 +0100 Subject: [PATCH] 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 --- src/helper/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.30.2