diff options
author | 2023-04-14 18:14:21 +0200 | |
---|---|---|
committer | 2023-04-14 18:34:54 +0200 | |
commit | d6915f642858c65c9225a07e96dd65be70806def (patch) | |
tree | 1765b0eafda35f259023da4159ef0e97aa80902a | |
parent | pango: add printf attribute (diff) | |
download | sway-d6915f642858c65c9225a07e96dd65be70806def.tar.gz sway-d6915f642858c65c9225a07e96dd65be70806def.tar.zst sway-d6915f642858c65c9225a07e96dd65be70806def.zip |
commands/floating_minmax_size: fix error strings
cmd_results_new() does not take the command name as argument.
-rw-r--r-- | sway/commands/floating_minmax_size.c | 6 |
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, | |||
23 | char *err; | 23 | char *err; |
24 | int width = (int)strtol(argv[0], &err, 10); | 24 | int width = (int)strtol(argv[0], &err, 10); |
25 | if (*err) { | 25 | if (*err) { |
26 | return cmd_results_new(CMD_INVALID, cmd_name, usage); | 26 | return cmd_results_new(CMD_INVALID, usage); |
27 | } | 27 | } |
28 | 28 | ||
29 | if (strcmp(argv[1], "x") != 0) { | 29 | if (strcmp(argv[1], "x") != 0) { |
30 | return cmd_results_new(CMD_INVALID, cmd_name, usage); | 30 | return cmd_results_new(CMD_INVALID, usage); |
31 | } | 31 | } |
32 | 32 | ||
33 | int height = (int)strtol(argv[2], &err, 10); | 33 | int height = (int)strtol(argv[2], &err, 10); |
34 | if (*err) { | 34 | if (*err) { |
35 | return cmd_results_new(CMD_INVALID, cmd_name, usage); | 35 | return cmd_results_new(CMD_INVALID, usage); |
36 | } | 36 | } |
37 | 37 | ||
38 | *config_width = width; | 38 | *config_width = width; |