From 83432223345cc0accdb2825252d85a827b505978 Mon Sep 17 00:00:00 2001 From: Ian Abbott Date: Wed, 17 May 2017 14:24:22 +0100 Subject: hush: make source_aliases[] const Although the elements of `source_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 --- common/hush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/hush.c') diff --git a/common/hush.c b/common/hush.c index d3f7bf330d..792b61ac9a 100644 --- a/common/hush.c +++ b/common/hush.c @@ -1974,7 +1974,7 @@ static int do_source(int argc, char *argv[]) return ret; } -static const char *source_aliases[] = { ".", NULL}; +static const char * const source_aliases[] = { ".", NULL}; BAREBOX_CMD_HELP_START(source) BAREBOX_CMD_HELP_TEXT("Read and execute commands from FILE in the current shell environment.") -- cgit v1.2.3