summaryrefslogtreecommitdiff
path: root/sway/commands/mode.c
diff options
context:
space:
mode:
authorManuel Stoeckl <[email protected]>2021-02-02 19:54:35 -0500
committerSimon Ser <[email protected]>2021-02-04 09:49:06 +0100
commitcb3c7276324b5b0862088df9ffe5498998edae91 (patch)
treeb4576f3715e53300794f92e4c6339df0ac1e447a /sway/commands/mode.c
parent89b4bc4bc7e52ecdcc809b4ffe48cba93de2794e (diff)
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.c2
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 @@
#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 },