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 1dAyxV-00033r-CA for barebox@lists.infradead.org; Wed, 17 May 2017 13:25:46 +0000 From: Ian Abbott Date: Wed, 17 May 2017 14:24:25 +0100 Message-Id: <20170517132426.13367-5-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 5/6] test: make test_aliases[] const To: barebox@lists.infradead.org Cc: Ian Abbott Although the elements of `test_aliases[]` are of type `const char *`, the elements themselves are not const-qualified. Make them `const`. Signed-off-by: Ian Abbott --- commands/test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/test.c b/commands/test.c index d0f63c139..c4f493860 100644 --- a/commands/test.c +++ b/commands/test.c @@ -224,7 +224,7 @@ out: return expr; } -static const char *test_aliases[] = { "[", NULL}; +static const char * const test_aliases[] = { "[", NULL}; BAREBOX_CMD_HELP_START(test) BAREBOX_CMD_HELP_TEXT("Options:") -- 2.11.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox