mirror of
https://github.com/swaywm/sway.git
synced 2026-04-08 08:21:13 -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
|
|
@ -6,7 +6,7 @@
|
|||
#include "log.h"
|
||||
|
||||
// must be in order for the bsearch
|
||||
static struct cmd_handler output_handlers[] = {
|
||||
static const struct cmd_handler output_handlers[] = {
|
||||
{ "adaptive_sync", output_cmd_adaptive_sync },
|
||||
{ "background", output_cmd_background },
|
||||
{ "bg", output_cmd_background },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue