summaryrefslogtreecommitdiff
path: root/src/login
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2015-09-01 13:13:49 +0200
committerAndy Wingo <wingo@pobox.com>2015-09-01 13:13:49 +0200
commita15428a0fee6fc3e198b0d19492fe4447c4467bb (patch)
treeb372fb6469e589d35dc24c295af61721e261870b /src/login
parent81d08ba2e8e3cc1e59ab057953f18119804b9ff9 (diff)
Fix argument order when checking inhibitors
Diffstat (limited to 'src/login')
-rw-r--r--src/login/loginctl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/login/loginctl.c b/src/login/loginctl.c
index e11ce2a9b9..16d80ab570 100644
--- a/src/login/loginctl.c
+++ b/src/login/loginctl.c
@@ -1257,7 +1257,7 @@ static int poweroff(int argc, char *argv[], void *userdata) {
assert(bus);
- r = check_inhibitors(bus, "shutdown", "poweroff");
+ r = check_inhibitors(bus, "poweroff", "shutdown");
if (r < 0)
return r;
@@ -1286,7 +1286,7 @@ static int reboot(int argc, char *argv[], void *userdata) {
assert(bus);
- r = check_inhibitors(bus, "shutdown", "reboot");
+ r = check_inhibitors(bus, "reboot", "shutdown");
if (r < 0)
return r;
@@ -1315,7 +1315,7 @@ static int suspend(int argc, char *argv[], void *userdata) {
assert(bus);
- r = check_inhibitors(bus, "sleep", "suspend");
+ r = check_inhibitors(bus, "suspend", "sleep");
if (r < 0)
return r;
@@ -1344,7 +1344,7 @@ static int hibernate(int argc, char *argv[], void *userdata) {
assert(bus);
- r = check_inhibitors(bus, "sleep", "hibernate");
+ r = check_inhibitors(bus, "hibernate", "sleep");
if (r < 0)
return r;
@@ -1373,7 +1373,7 @@ static int hybrid_sleep(int argc, char *argv[], void *userdata) {
assert(bus);
- r = check_inhibitors(bus, "sleep", "hybrid-sleep");
+ r = check_inhibitors(bus, "hybrid-sleep", "sleep");
if (r < 0)
return r;