From d5faf643742ae047e327d41910232791bc7bca41 Mon Sep 17 00:00:00 2001 From: Richard Date: Sat, 22 Jul 2017 21:41:19 -0500 Subject: Mark some things as const Several string pointer arrays pointed to const strings but were not const themselves. A few various structures and arrays were also marked const. --- InfoScreen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'InfoScreen.c') diff --git a/InfoScreen.c b/InfoScreen.c index e27494c7..dd5095c7 100644 --- a/InfoScreen.c +++ b/InfoScreen.c @@ -50,9 +50,9 @@ struct InfoScreen_ { }; }*/ -static const char* InfoScreenFunctions[] = {"Search ", "Filter ", "Refresh", "Done ", NULL}; +static const char* const InfoScreenFunctions[] = {"Search ", "Filter ", "Refresh", "Done ", NULL}; -static const char* InfoScreenKeys[] = {"F3", "F4", "F5", "Esc"}; +static const char* const InfoScreenKeys[] = {"F3", "F4", "F5", "Esc"}; static int InfoScreenEvents[] = {KEY_F(3), KEY_F(4), KEY_F(5), 27}; -- cgit v1.2.3