summaryrefslogtreecommitdiffstats
path: root/commands/help.c
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2017-05-17 14:24:24 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-05-19 07:12:46 +0200
commit0d08372a92f60284748140c184050ca9a6762fa9 (patch)
treee922ac0dfe49b443f5e1bbc1770fdc5cae0b5f36 /commands/help.c
parenta3bb59ba80c7279df36f168ec67dfb32b0f5a56f (diff)
downloadbarebox-0d08372a92f60284748140c184050ca9a6762fa9.tar.gz
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 <abbotti@mev.co.uk> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/help.c')
-rw-r--r--commands/help.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/help.c b/commands/help.c
index 819c406..34ffa9a 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,