diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-12-20 16:58:37 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-12-20 16:58:37 +0100 |
commit | 7e7a53c415b82cceee6173922987b772b1d51c10 (patch) | |
tree | 41623531c123c352d207ac0b0d0727e357054bcc /IncSet.c | |
parent | 6b100b0cf47dda06d1dc1d38211d910488b5d803 (diff) |
Mark event arrays const
Diffstat (limited to 'IncSet.c')
-rw-r--r-- | IncSet.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -31,7 +31,7 @@ void IncSet_reset(IncSet* this, IncType type) { 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 const int searchEvents[] = {KEY_F(3), 27, ERR}; static inline void IncMode_initSearch(IncMode* search) { memset(search, 0, sizeof(IncMode)); @@ -41,7 +41,7 @@ static inline void IncMode_initSearch(IncMode* search) { static const char* const filterFunctions[] = {"Done ", "Clear ", " Filter: ", NULL}; static const char* const filterKeys[] = {"Enter", "Esc", " "}; -static int filterEvents[] = {13, 27, ERR}; +static const int filterEvents[] = {13, 27, ERR}; static inline void IncMode_initFilter(IncMode* filter) { memset(filter, 0, sizeof(IncMode)); |