summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2017-05-17 14:24:25 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-05-19 07:12:46 +0200
commit55c24dcce32fe762d0da8f994afc070a6b271697 (patch)
tree12d4964754604f0e3c696467399c9dbed68941e8
parent0d08372a92f60284748140c184050ca9a6762fa9 (diff)
downloadbarebox-55c24dcce32fe762d0da8f994afc070a6b271697.tar.gz
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>
-rw-r--r--commands/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/test.c b/commands/test.c
index d0f63c1..c4f4938 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:")