chiark / gitweb /
Fix argument order when checking inhibitors
authorAndy Wingo <wingo@pobox.com>
Tue, 1 Sep 2015 11:13:49 +0000 (13:13 +0200)
committerAndy Wingo <wingo@pobox.com>
Tue, 1 Sep 2015 11:13:49 +0000 (13:13 +0200)
src/login/loginctl.c

index e11ce2a9b99f5d31c39e27f8f6c0bee307eaeaa1..16d80ab57078cebecf10086d786a3692ebf6e78c 100644 (file)
@@ -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;