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/output.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/output.c')
-rw-r--r-- | sway/commands/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/output.c b/sway/commands/output.c index 5186a2ba..4418f23f 100644 --- a/sway/commands/output.c +++ b/sway/commands/output.c | |||
@@ -6,7 +6,7 @@ | |||
6 | #include "log.h" | 6 | #include "log.h" |
7 | 7 | ||
8 | // must be in order for the bsearch | 8 | // must be in order for the bsearch |
9 | static struct cmd_handler output_handlers[] = { | 9 | static const struct cmd_handler output_handlers[] = { |
10 | { "adaptive_sync", output_cmd_adaptive_sync }, | 10 | { "adaptive_sync", output_cmd_adaptive_sync }, |
11 | { "background", output_cmd_background }, | 11 | { "background", output_cmd_background }, |
12 | { "bg", output_cmd_background }, | 12 | { "bg", output_cmd_background }, |