diff options
author | Manuel Stoeckl <[email protected]> | 2021-02-02 19:54:35 -0500 |
---|---|---|
committer | Simon Ser <[email protected]> | 2021-02-04 09:49:06 +0100 |
commit | cb3c7276324b5b0862088df9ffe5498998edae91 (patch) | |
tree | b4576f3715e53300794f92e4c6339df0ac1e447a /sway/commands/bar.c | |
parent | 89b4bc4bc7e52ecdcc809b4ffe48cba93de2794e (diff) |
Declare all struct cmd_handler arrays const
And make the functions handling these arrays use const types.
Diffstat (limited to 'sway/commands/bar.c')
-rw-r--r-- | sway/commands/bar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/bar.c b/sway/commands/bar.c index d42b7fc2..a58f5438 100644 --- a/sway/commands/bar.c +++ b/sway/commands/bar.c @@ -8,7 +8,7 @@ #include "log.h" // Must be in alphabetical order for bsearch -static struct cmd_handler bar_handlers[] = { +static const struct cmd_handler bar_handlers[] = { { "bindcode", bar_cmd_bindcode }, { "binding_mode_indicator", bar_cmd_binding_mode_indicator }, { "bindsym", bar_cmd_bindsym }, @@ -41,7 +41,7 @@ static struct cmd_handler bar_handlers[] = { }; // Must be in alphabetical order for bsearch -static struct cmd_handler bar_config_handlers[] = { +static const struct cmd_handler bar_config_handlers[] = { { "id", bar_cmd_id }, { "swaybar_command", bar_cmd_swaybar_command }, }; |