mirror of
https://github.com/swaywm/sway.git
synced 2025-04-05 03:47:54 +03:00
Remove now-unused "input" argument of cmd_results_new
Patch tested by compiling with `__attribute__ ((format (printf, 2, 3)))` applied to `cmd_results_new`. String usage constants have been converted from pointers to arrays when encountered. General handler format strings were sometimes modified to include the old input string, especially for unknown command errors.
This commit is contained in:
parent
6d392150a7
commit
2a684cad5f
131 changed files with 503 additions and 601 deletions
|
@ -56,13 +56,12 @@ struct cmd_results *cmd_reload(int argc, char **argv) {
|
|||
}
|
||||
|
||||
if (!load_main_config(config->current_config_path, true, true)) {
|
||||
return cmd_results_new(CMD_FAILURE, "reload",
|
||||
"Error(s) reloading config.");
|
||||
return cmd_results_new(CMD_FAILURE, "Error(s) reloading config.");
|
||||
}
|
||||
|
||||
// The reload command frees a lot of stuff, so to avoid use-after-frees
|
||||
// we schedule the reload to happen using an idle event.
|
||||
wl_event_loop_add_idle(server.wl_event_loop, do_reload, NULL);
|
||||
|
||||
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
|
||||
return cmd_results_new(CMD_SUCCESS, NULL);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue