From a3bb59ba80c7279df36f168ec67dfb32b0f5a56f Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Wed, 17 May 2017 14:24:23 +0100 Subject: 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 Signed-off-by: Sascha Hauer --- commands/edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.") -- cgit v1.2.3