aboutsummaryrefslogtreecommitdiff
path: root/include
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 /include
parent95405911051dbb233902c95f824dccdde1e419fd (diff)
Make cmd_handler.command const
Diffstat (limited to 'include')
-rw-r--r--include/sway/commands.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index 123a7245..fc6ce22e 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -9,7 +9,7 @@ struct sway_container;
typedef struct cmd_results *sway_cmd(int argc, char **argv);
struct cmd_handler {
- char *command;
+ const char *command;
sway_cmd *handle;
};
@@ -46,7 +46,7 @@ enum expected_args {
struct cmd_results *checkarg(int argc, const char *name,
enum expected_args type, int val);
-const struct cmd_handler *find_handler(char *line,
+const struct cmd_handler *find_handler(const char *line,
const struct cmd_handler *cmd_handlers, size_t handlers_size);
/**