diff options
author | Manuel Stoeckl <code@mstoeckl.com> | 2021-02-02 19:54:35 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-04 09:49:06 +0100 |
commit | cb3c7276324b5b0862088df9ffe5498998edae91 (patch) | |
tree | b4576f3715e53300794f92e4c6339df0ac1e447a /sway/commands/mode.c | |
parent | xdg-foreign: add v1 and v2 implementations (diff) | |
download | sway-cb3c7276324b5b0862088df9ffe5498998edae91.tar.gz sway-cb3c7276324b5b0862088df9ffe5498998edae91.tar.zst sway-cb3c7276324b5b0862088df9ffe5498998edae91.zip |
Declare all struct cmd_handler arrays const
And make the functions handling these arrays use const types.
Diffstat (limited to 'sway/commands/mode.c')
-rw-r--r-- | sway/commands/mode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/mode.c b/sway/commands/mode.c index a5871dab..e23e4ee4 100644 --- a/sway/commands/mode.c +++ b/sway/commands/mode.c | |||
@@ -9,7 +9,7 @@ | |||
9 | #include "stringop.h" | 9 | #include "stringop.h" |
10 | 10 | ||
11 | // Must be in order for the bsearch | 11 | // Must be in order for the bsearch |
12 | static struct cmd_handler mode_handlers[] = { | 12 | static const struct cmd_handler mode_handlers[] = { |
13 | { "bindcode", cmd_bindcode }, | 13 | { "bindcode", cmd_bindcode }, |
14 | { "bindswitch", cmd_bindswitch }, | 14 | { "bindswitch", cmd_bindswitch }, |
15 | { "bindsym", cmd_bindsym }, | 15 | { "bindsym", cmd_bindsym }, |