[PATCH 5/6] test: make test_aliases[] const
Ian Abbott
abbotti at mev.co.uk
Wed May 17 06:24:25 PDT 2017
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 <abbotti at mev.co.uk>
---
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
More information about the barebox
mailing list