diff options
author | Sven Eden <yamakuzure@gmx.net> | 2018-06-12 08:03:27 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-06-12 08:04:00 +0200 |
commit | 2fb9555cca94ede6ad186060e2ef72ac5ed523a2 (patch) | |
tree | 994221d58d9c9ce51716ba6ce7f26d2f07d7db83 /src/login/elogind-dbus.c | |
parent | c89778187e749926b62b76095c277c4861f907d4 (diff) |
Prep v238: Make a real distinction between 'halt' and 'poweroff'.
Diffstat (limited to 'src/login/elogind-dbus.c')
-rw-r--r-- | src/login/elogind-dbus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/login/elogind-dbus.c b/src/login/elogind-dbus.c index 638376fd7..baa36b1f2 100644 --- a/src/login/elogind-dbus.c +++ b/src/login/elogind-dbus.c @@ -107,7 +107,7 @@ static int shutdown_or_sleep(Manager *m, HandleAction action) { switch (action) { case HANDLE_POWEROFF: - return run_helper(HALT); + return run_helper(POWEROFF); case HANDLE_REBOOT: return run_helper(REBOOT); case HANDLE_HALT: @@ -172,7 +172,7 @@ static int execute_shutdown_or_sleep( * sleeping processes to wake up, we have to tell them all * by ourselves. */ if (w == INHIBIT_SLEEP) { - send_prepare_for(m, w, false); + (void) send_prepare_for(m, w, false); m->action_what = 0; } else m->action_what = w; @@ -273,7 +273,7 @@ int bus_manager_shutdown_or_sleep_now_or_later( assert(w <= _INHIBIT_WHAT_MAX); /* Tell everybody to prepare for shutdown/sleep */ - send_prepare_for(m, w, true); + (void) send_prepare_for(m, w, true); delayed = m->inhibit_delay_max > 0 && |