Declare all struct cmd_handler arrays const

And make the functions handling these arrays use const types.
This commit is contained in:
Manuel Stoeckl 2021-02-02 19:54:35 -05:00 committed by Simon Ser
parent 89b4bc4bc7
commit cb3c727632
8 changed files with 29 additions and 29 deletions

View file

@ -9,7 +9,7 @@
#include "stringop.h"
// Must be in order for the bsearch
static struct cmd_handler mode_handlers[] = {
static const struct cmd_handler mode_handlers[] = {
{ "bindcode", cmd_bindcode },
{ "bindswitch", cmd_bindswitch },
{ "bindsym", cmd_bindsym },