diff options
author | Ian Abbott <abbotti@mev.co.uk> | 2017-05-17 14:24:26 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-05-19 07:12:46 +0200 |
commit | c795a358f75d5e7a0fa3f7740b991e4da1564a6c (patch) | |
tree | 2dfb1acf69edbbba47bc7e3b2ecaf778ccf5ce47 /commands/true.c | |
parent | 55c24dcce32fe762d0da8f994afc070a6b271697 (diff) | |
download | barebox-c795a358f75d5e7a0fa3f7740b991e4da1564a6c.tar.gz barebox-c795a358f75d5e7a0fa3f7740b991e4da1564a6c.tar.xz |
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>
Diffstat (limited to 'commands/true.c')
-rw-r--r-- | commands/true.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/true.c b/commands/true.c index b850f51651..ad2be8e8eb 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, |