From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp109.iad3a.emailsrvr.com ([173.203.187.109]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dAyx9-0001fi-9N for barebox@lists.infradead.org; Wed, 17 May 2017 13:25:25 +0000 From: Ian Abbott Date: Wed, 17 May 2017 14:24:23 +0100 Message-Id: <20170517132426.13367-3-abbotti@mev.co.uk> In-Reply-To: <20170517132426.13367-1-abbotti@mev.co.uk> References: <20170517132426.13367-1-abbotti@mev.co.uk> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 3/6] edit: make edit_aliases[] const To: barebox@lists.infradead.org Cc: Ian Abbott 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 --- commands/edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit.c b/commands/edit.c index 696a818d9..290222ce1 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.") -- 2.11.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox