mirror of
https://github.com/swaywm/sway.git
synced 2026-03-11 05:34:18 -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
|
|
@ -49,5 +49,5 @@ struct cmd_results *input_cmd_map_to_region(int argc, char **argv) {
|
|||
error:
|
||||
free(ic->mapped_to_region);
|
||||
ic->mapped_to_region = NULL;
|
||||
return cmd_results_new(CMD_FAILURE, errstr);
|
||||
return cmd_results_new(CMD_FAILURE, "%s", errstr);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ struct cmd_results *input_cmd_scroll_button(int argc, char **argv) {
|
|||
char *message = NULL;
|
||||
uint32_t button = get_mouse_button(*argv, &message);
|
||||
if (message) {
|
||||
error = cmd_results_new(CMD_INVALID, message);
|
||||
error = cmd_results_new(CMD_INVALID, "%s", message);
|
||||
free(message);
|
||||
return error;
|
||||
} else if (button == SWAY_SCROLL_UP || button == SWAY_SCROLL_DOWN
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue