mirror of
https://github.com/NickHu/sway
synced 2024-12-25 21:58:16 +01:00
commands/floating_minmax_size: fix error strings
cmd_results_new() does not take the command name as argument.
This commit is contained in:
parent
bd58df61ef
commit
d6915f6428
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue