From 6ec57271b6dd7d042158ea7f4e4e87a7cfc6f14f Mon Sep 17 00:00:00 2001 From: Carl Smedstad Date: Fri, 30 Dec 2022 08:22:46 +0100 Subject: Make cmd_handler.command const --- sway/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway') 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; -- cgit v1.2.3