diff options
author | Simon Ser <contact@emersion.fr> | 2023-02-28 16:24:03 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-04-14 18:34:54 +0200 |
commit | a7b50f6c9cbded863475cc7b60d048636750ef6a (patch) | |
tree | 30e8ef7ba82fb17e780448070a34e22edf6b63bf /sway/commands/layout.c | |
parent | commands/floating_minmax_size: fix error strings (diff) | |
download | sway-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/layout.c')
-rw-r--r-- | sway/commands/layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/layout.c b/sway/commands/layout.c index 2ba61b38..12ce4839 100644 --- a/sway/commands/layout.c +++ b/sway/commands/layout.c | |||
@@ -153,7 +153,7 @@ struct cmd_results *cmd_layout(int argc, char **argv) { | |||
153 | workspace->output); | 153 | workspace->output); |
154 | } | 154 | } |
155 | if (new_layout == L_NONE) { | 155 | if (new_layout == L_NONE) { |
156 | return cmd_results_new(CMD_INVALID, expected_syntax); | 156 | return cmd_results_new(CMD_INVALID, "%s", expected_syntax); |
157 | } | 157 | } |
158 | if (new_layout != old_layout) { | 158 | if (new_layout != old_layout) { |
159 | if (container) { | 159 | if (container) { |