diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2017-05-17 14:24:25 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-05-19 07:12:46 +0200 |
commit | 55c24dcce32fe762d0da8f994afc070a6b271697 (patch) | |
tree | 12d4964754604f0e3c696467399c9dbed68941e8 /commands/test.c | |
parent | 0d08372a92f60284748140c184050ca9a6762fa9 (diff) | |
download | barebox-55c24dcce32fe762d0da8f994afc070a6b271697.tar.gz barebox-55c24dcce32fe762d0da8f994afc070a6b271697.tar.xz |
test: make test_aliases[] const
Although the elements of `test_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/test.c')
-rw-r--r-- | commands/test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/test.c b/commands/test.c index d0f63c1391..c4f493860f 100644 --- a/commands/test.c +++ b/commands/test.c @@ -224,7 +224,7 @@ out: return expr; } -static const char *test_aliases[] = { "[", NULL}; +static const char * const test_aliases[] = { "[", NULL}; BAREBOX_CMD_HELP_START(test) BAREBOX_CMD_HELP_TEXT("Options:") |