mirror of
https://github.com/swaywm/sway.git
synced 2026-04-20 06:47:03 -04:00
Declare all struct cmd_handler arrays const
And make the functions handling these arrays use const types.
This commit is contained in:
parent
89b4bc4bc7
commit
cb3c727632
8 changed files with 29 additions and 29 deletions
|
|
@ -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 },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue