aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/swap.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2023-02-28 16:24:03 +0100
committerLibravatar Simon Ser <contact@emersion.fr>2023-04-14 18:34:54 +0200
commita7b50f6c9cbded863475cc7b60d048636750ef6a (patch)
tree30e8ef7ba82fb17e780448070a34e22edf6b63bf /sway/commands/swap.c
parentcommands/floating_minmax_size: fix error strings (diff)
downloadsway-a7b50f6c9cbded863475cc7b60d048636750ef6a.tar.gz
sway-a7b50f6c9cbded863475cc7b60d048636750ef6a.tar.zst
sway-a7b50f6c9cbded863475cc7b60d048636750ef6a.zip
commands: add printf attribute to cmd_results_new()
And fix the resulting build failures.
Diffstat (limited to 'sway/commands/swap.c')
-rw-r--r--sway/commands/swap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/swap.c b/sway/commands/swap.c
index b457f121..d44eb006 100644
--- a/sway/commands/swap.c
+++ b/sway/commands/swap.c
@@ -46,7 +46,7 @@ struct cmd_results *cmd_swap(int argc, char **argv) {
46 } 46 }
47 47
48 if (strcasecmp(argv[0], "container") || strcasecmp(argv[1], "with")) { 48 if (strcasecmp(argv[0], "container") || strcasecmp(argv[1], "with")) {
49 return cmd_results_new(CMD_INVALID, expected_syntax); 49 return cmd_results_new(CMD_INVALID, "%s", expected_syntax);
50 } 50 }
51 51
52 struct sway_container *current = config->handler_context.container; 52 struct sway_container *current = config->handler_context.container;
@@ -65,7 +65,7 @@ struct cmd_results *cmd_swap(int argc, char **argv) {
65 other = root_find_container(test_mark, value); 65 other = root_find_container(test_mark, value);
66 } else { 66 } else {
67 free(value); 67 free(value);
68 return cmd_results_new(CMD_INVALID, expected_syntax); 68 return cmd_results_new(CMD_INVALID, "%s", expected_syntax);
69 } 69 }
70 70
71 if (!other) { 71 if (!other) {