diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2017-05-17 14:24:24 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-05-19 07:12:46 +0200 |
commit | 0d08372a92f60284748140c184050ca9a6762fa9 (patch) | |
tree | e922ac0dfe49b443f5e1bbc1770fdc5cae0b5f36 | |
parent | a3bb59ba80c7279df36f168ec67dfb32b0f5a56f (diff) | |
download | barebox-0d08372a92f60284748140c184050ca9a6762fa9.tar.gz barebox-0d08372a92f60284748140c184050ca9a6762fa9.tar.xz |
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>
-rw-r--r-- | commands/help.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |