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. --- MainPanel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MainPanel.c') diff --git a/MainPanel.c b/MainPanel.c index a62555ee..b5a7e305 100644 --- a/MainPanel.c +++ b/MainPanel.c @@ -31,7 +31,7 @@ typedef bool(*MainPanel_ForeachProcessFn)(Process*, size_t); }*/ -static const char* MainFunctions[] = {"Help ", "Setup ", "Search", "Filter", "Tree ", "SortBy", "Nice -", "Nice +", "Kill ", "Quit ", NULL}; +static const char* const MainFunctions[] = {"Help ", "Setup ", "Search", "Filter", "Tree ", "SortBy", "Nice -", "Nice +", "Kill ", "Quit ", NULL}; void MainPanel_updateTreeFunctions(MainPanel* this, bool mode) { FunctionBar* bar = MainPanel_getFunctionBar(this); -- cgit v1.2.3