diff options
author | Richard <rsaxvc@rsaxvc.net> | 2017-07-22 21:41:19 -0500 |
---|---|---|
committer | Richard <rsaxvc@rsaxvc.net> | 2017-07-22 22:34:30 -0500 |
commit | d5faf643742ae047e327d41910232791bc7bca41 (patch) | |
tree | 0b678ca7858690e3898bf3b3268d175719e3aa3b /IncSet.c | |
parent | 18b3e5d255b580ea31e62889c4c1903d466ab0e6 (diff) |
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.
Diffstat (limited to 'IncSet.c')
-rw-r--r-- | IncSet.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -52,8 +52,8 @@ static void IncMode_reset(IncMode* mode) { mode->buffer[0] = 0; } -static const char* searchFunctions[] = {"Next ", "Cancel ", " Search: ", NULL}; -static const char* searchKeys[] = {"F3", "Esc", " "}; +static const char* const searchFunctions[] = {"Next ", "Cancel ", " Search: ", NULL}; +static const char* const searchKeys[] = {"F3", "Esc", " "}; static int searchEvents[] = {KEY_F(3), 27, ERR}; static inline void IncMode_initSearch(IncMode* search) { @@ -62,8 +62,8 @@ static inline void IncMode_initSearch(IncMode* search) { search->isFilter = false; } -static const char* filterFunctions[] = {"Done ", "Clear ", " Filter: ", NULL}; -static const char* filterKeys[] = {"Enter", "Esc", " "}; +static const char* const filterFunctions[] = {"Done ", "Clear ", " Filter: ", NULL}; +static const char* const filterKeys[] = {"Enter", "Esc", " "}; static int filterEvents[] = {13, 27, ERR}; static inline void IncMode_initFilter(IncMode* filter) { |