summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2017-05-17 14:24:26 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-05-19 07:12:46 +0200
commitc795a358f75d5e7a0fa3f7740b991e4da1564a6c (patch)
tree2dfb1acf69edbbba47bc7e3b2ecaf778ccf5ce47
parent55c24dcce32fe762d0da8f994afc070a6b271697 (diff)
downloadbarebox-c795a358f75d5e7a0fa3f7740b991e4da1564a6c.tar.gz
true: make true_aliases[] const
Although the elements of `true_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/true.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/true.c b/commands/true.c
index b850f51..ad2be8e 100644
--- a/commands/true.c
+++ b/commands/true.c
@@ -26,7 +26,7 @@ static int do_true(int argc, char *argv[])
return 0;
}
-static const char *true_aliases[] = { ":", NULL};
+static const char * const true_aliases[] = { ":", NULL};
BAREBOX_CMD_START(true)
.aliases = true_aliases,