summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorIan Abbott <abbotti@mev.co.uk>2017-05-17 14:24:23 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-05-19 07:12:46 +0200
commita3bb59ba80c7279df36f168ec67dfb32b0f5a56f (patch)
tree49afabeec914e002bb9dd189db281a81619ca77d /commands
parent83432223345cc0accdb2825252d85a827b505978 (diff)
downloadbarebox-a3bb59ba80c7279df36f168ec67dfb32b0f5a56f.tar.gz
barebox-a3bb59ba80c7279df36f168ec67dfb32b0f5a56f.tar.xz
edit: make edit_aliases[] const
Although the elements of `edit_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')
-rw-r--r--commands/edit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/edit.c b/commands/edit.c
index 696a818d9d..290222ce15 100644
--- a/commands/edit.c
+++ b/commands/edit.c
@@ -559,7 +559,7 @@ out:
return ret;
}
-static const char *edit_aliases[] = { "sedit", NULL};
+static const char * const edit_aliases[] = { "sedit", NULL};
BAREBOX_CMD_HELP_START(edit)
BAREBOX_CMD_HELP_TEXT("Use cursor keys, Ctrl-C to exit and Ctrl-D to exit-with-save.")