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/seat.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/seat.c')
-rw-r--r-- | sway/commands/seat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/seat.c b/sway/commands/seat.c index 84c6ba53..2d197b69 100644 --- a/sway/commands/seat.c +++ b/sway/commands/seat.c @@ -8,13 +8,13 @@ // must be in order for the bsearch // these handlers perform actions on the seat -static struct cmd_handler seat_action_handlers[] = { +static const struct cmd_handler seat_action_handlers[] = { { "cursor", seat_cmd_cursor }, }; // must be in order for the bsearch // these handlers alter the seat config -static struct cmd_handler seat_handlers[] = { +static const struct cmd_handler seat_handlers[] = { { "attach", seat_cmd_attach }, { "fallback", seat_cmd_fallback }, { "hide_cursor", seat_cmd_hide_cursor }, |