aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorCarl Smedstad <carl.smedstad@protonmail.com>2022-12-30 08:22:46 +0100
committerSimon Ser <contact@emersion.fr>2023-01-03 21:50:56 +0100
commit6ec57271b6dd7d042158ea7f4e4e87a7cfc6f14f (patch)
tree3826b69146e4b1433606b3dd6e2e423c0dd75a96 /sway
parent95405911051dbb233902c95f824dccdde1e419fd (diff)
downloadsway-6ec57271b6dd7d042158ea7f4e4e87a7cfc6f14f.tar.xz
Make cmd_handler.command const
Diffstat (limited to 'sway')
-rw-r--r--sway/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 041da7ea..28e9d8d2 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -148,7 +148,7 @@ static int handler_compare(const void *_a, const void *_b) {
return strcasecmp(a->command, b->command);
}
-const struct cmd_handler *find_handler(char *line,
+const struct cmd_handler *find_handler(const char *line,
const struct cmd_handler *handlers, size_t handlers_size) {
if (!handlers || !handlers_size) {
return NULL;