codespell: fix spelling errors
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
51aba17b88
commit
5238e95759
@@ -180,7 +180,7 @@ typedef enum BusFocus {
|
||||
_BUS_FOCUS_MAX
|
||||
} BusFocus;
|
||||
|
||||
static sd_bus *busses[_BUS_FOCUS_MAX] = {};
|
||||
static sd_bus *buses[_BUS_FOCUS_MAX] = {};
|
||||
|
||||
static UnitFileFlags args_to_flags(void) {
|
||||
return (arg_runtime ? UNIT_FILE_RUNTIME : 0) |
|
||||
@@ -200,22 +200,22 @@ static int acquire_bus(BusFocus focus, sd_bus **ret) {
|
||||
if (getenv_bool("SYSTEMCTL_FORCE_BUS") > 0)
|
||||
focus = BUS_FULL;
|
||||
|
||||
if (!busses[focus]) {
|
||||
if (!buses[focus]) {
|
||||
bool user;
|
||||
|
||||
user = arg_scope != UNIT_FILE_SYSTEM;
|
||||
|
||||
if (focus == BUS_MANAGER)
|
||||
r = bus_connect_transport_systemd(arg_transport, arg_host, user, &busses[focus]);
|
||||
r = bus_connect_transport_systemd(arg_transport, arg_host, user, &buses[focus]);
|
||||
else
|
||||
r = bus_connect_transport(arg_transport, arg_host, user, &busses[focus]);
|
||||
r = bus_connect_transport(arg_transport, arg_host, user, &buses[focus]);
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to connect to bus: %m");
|
||||
|
||||
(void) sd_bus_set_allow_interactive_authorization(busses[focus], arg_ask_password);
|
||||
(void) sd_bus_set_allow_interactive_authorization(buses[focus], arg_ask_password);
|
||||
}
|
||||
|
||||
*ret = busses[focus];
|
||||
*ret = buses[focus];
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -223,7 +223,7 @@ static void release_busses(void) {
|
||||
BusFocus w;
|
||||
|
||||
for (w = 0; w < _BUS_FOCUS_MAX; w++)
|
||||
busses[w] = sd_bus_flush_close_unref(busses[w]);
|
||||
buses[w] = sd_bus_flush_close_unref(buses[w]);
|
||||
}
|
||||
|
||||
static void ask_password_agent_open_if_enabled(void) {
|
||||
@@ -8818,7 +8818,7 @@ static int systemctl_main(int argc, char *argv[]) {
|
||||
{ "restart", 2, VERB_ANY, VERB_ONLINE_ONLY, start_unit },
|
||||
{ "try-restart", 2, VERB_ANY, VERB_ONLINE_ONLY, start_unit },
|
||||
{ "reload-or-restart", 2, VERB_ANY, VERB_ONLINE_ONLY, start_unit },
|
||||
{ "reload-or-try-restart", 2, VERB_ANY, VERB_ONLINE_ONLY, start_unit }, /* For compatbility with old systemctl <= 228 */
|
||||
{ "reload-or-try-restart", 2, VERB_ANY, VERB_ONLINE_ONLY, start_unit }, /* For compatibility with old systemctl <= 228 */
|
||||
{ "try-reload-or-restart", 2, VERB_ANY, VERB_ONLINE_ONLY, start_unit },
|
||||
{ "force-reload", 2, VERB_ANY, VERB_ONLINE_ONLY, start_unit }, /* For compatibility with SysV */
|
||||
{ "condreload", 2, VERB_ANY, VERB_ONLINE_ONLY, start_unit }, /* For compatibility with ALTLinux */
|
||||
|
||||
Reference in New Issue
Block a user