aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-04-14 18:14:21 +0200
committerSimon Ser <contact@emersion.fr>2023-04-14 18:34:54 +0200
commitd6915f642858c65c9225a07e96dd65be70806def (patch)
tree1765b0eafda35f259023da4159ef0e97aa80902a /sway/commands
parentbd58df61efbb86cd43682acfd7cde8085b503590 (diff)
commands/floating_minmax_size: fix error strings
cmd_results_new() does not take the command name as argument.
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/floating_minmax_size.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/commands/floating_minmax_size.c b/sway/commands/floating_minmax_size.c
index 3a1d606a..1c28c536 100644
--- a/sway/commands/floating_minmax_size.c
+++ b/sway/commands/floating_minmax_size.c
@@ -23,16 +23,16 @@ static struct cmd_results *handle_command(int argc, char **argv, char *cmd_name,
char *err;
int width = (int)strtol(argv[0], &err, 10);
if (*err) {
- return cmd_results_new(CMD_INVALID, cmd_name, usage);
+ return cmd_results_new(CMD_INVALID, usage);
}
if (strcmp(argv[1], "x") != 0) {
- return cmd_results_new(CMD_INVALID, cmd_name, usage);
+ return cmd_results_new(CMD_INVALID, usage);
}
int height = (int)strtol(argv[2], &err, 10);
if (*err) {
- return cmd_results_new(CMD_INVALID, cmd_name, usage);
+ return cmd_results_new(CMD_INVALID, usage);
}
*config_width = width;