mirror of
https://github.com/swaywm/sway.git
synced 2026-04-05 07:15:41 -04:00
commands: add printf attribute to cmd_results_new()
And fix the resulting build failures.
This commit is contained in:
parent
d6915f6428
commit
a7b50f6c9c
19 changed files with 63 additions and 58 deletions
|
|
@ -46,7 +46,7 @@ struct cmd_results *cmd_swap(int argc, char **argv) {
|
|||
}
|
||||
|
||||
if (strcasecmp(argv[0], "container") || strcasecmp(argv[1], "with")) {
|
||||
return cmd_results_new(CMD_INVALID, expected_syntax);
|
||||
return cmd_results_new(CMD_INVALID, "%s", expected_syntax);
|
||||
}
|
||||
|
||||
struct sway_container *current = config->handler_context.container;
|
||||
|
|
@ -65,7 +65,7 @@ struct cmd_results *cmd_swap(int argc, char **argv) {
|
|||
other = root_find_container(test_mark, value);
|
||||
} else {
|
||||
free(value);
|
||||
return cmd_results_new(CMD_INVALID, expected_syntax);
|
||||
return cmd_results_new(CMD_INVALID, "%s", expected_syntax);
|
||||
}
|
||||
|
||||
if (!other) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue