diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2019-01-04 10:53:49 +0100 |
---|---|---|
committer | Tomas Vanek <vanekt@fbl.cz> | 2019-04-07 08:14:02 +0100 |
commit | 6949b5393d9fb6511ddef13ce0bef1a147e7f962 (patch) | |
tree | ffd09bf001755584c2e8d1f463f15d856ce120b9 /src/helper | |
parent | 92c50fda2bbe0061d26a420332ba625bc780cdc4 (diff) |
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
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/log.c b/src/helper/log.c index f9807747..90653c41 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, |