From 0d08372a92f60284748140c184050ca9a6762fa9 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Wed, 17 May 2017 14:24:24 +0100 Subject: help: make help_aliases[] const Although the elements of `help_aliases[]` are of type `const char *`, the elements themselves are not const-qualified. Make them `const`. Signed-off-by: Ian Abbott Signed-off-by: Sascha Hauer --- commands/help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/help.c b/commands/help.c index 819c40653c..34ffa9a419 100644 --- a/commands/help.c +++ b/commands/help.c @@ -139,7 +139,7 @@ BAREBOX_CMD_HELP_OPT ("-a", "output help on all commands") BAREBOX_CMD_HELP_OPT ("-v", "verbose") BAREBOX_CMD_HELP_END -static const char *help_aliases[] = { "?", NULL}; +static const char * const help_aliases[] = { "?", NULL}; BAREBOX_CMD_START(help) .cmd = do_help, -- cgit v1.2.3