diff options
author | Daniel Mack <daniel@zonque.org> | 2015-04-09 16:44:51 +0200 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2015-04-24 17:48:12 +0200 |
commit | 3f61a7a6eb5ff7e5a14cd322897741969df6b723 (patch) | |
tree | 23b17df3625a1517a8443c732383c909f8eb76a0 /src/login | |
parent | 47bc12e1ba35d38edda737dae232088d6d3ae688 (diff) |
logind: drop unused argument from method_do_shutdown_or_sleep()
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/logind-dbus.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 76070a3bb3..037459be71 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -1541,7 +1541,6 @@ static int method_do_shutdown_or_sleep( const char *action_multiple_sessions, const char *action_ignore_inhibit, const char *sleep_verb, - sd_bus_message_handler_t method, sd_bus_error *error) { _cleanup_bus_creds_unref_ sd_bus_creds *creds = NULL; @@ -1557,7 +1556,6 @@ static int method_do_shutdown_or_sleep( assert(action); assert(action_multiple_sessions); assert(action_ignore_inhibit); - assert(method); r = sd_bus_message_read(message, "b", &interactive); if (r < 0) @@ -1633,7 +1631,6 @@ static int method_poweroff(sd_bus *bus, sd_bus_message *message, void *userdata, "org.freedesktop.login1.power-off-multiple-sessions", "org.freedesktop.login1.power-off-ignore-inhibit", NULL, - method_poweroff, error); } @@ -1648,7 +1645,6 @@ static int method_reboot(sd_bus *bus, sd_bus_message *message, void *userdata, s "org.freedesktop.login1.reboot-multiple-sessions", "org.freedesktop.login1.reboot-ignore-inhibit", NULL, - method_reboot, error); } @@ -1663,7 +1659,6 @@ static int method_suspend(sd_bus *bus, sd_bus_message *message, void *userdata, "org.freedesktop.login1.suspend-multiple-sessions", "org.freedesktop.login1.suspend-ignore-inhibit", "suspend", - method_suspend, error); } @@ -1678,7 +1673,6 @@ static int method_hibernate(sd_bus *bus, sd_bus_message *message, void *userdata "org.freedesktop.login1.hibernate-multiple-sessions", "org.freedesktop.login1.hibernate-ignore-inhibit", "hibernate", - method_hibernate, error); } @@ -1693,7 +1687,6 @@ static int method_hybrid_sleep(sd_bus *bus, sd_bus_message *message, void *userd "org.freedesktop.login1.hibernate-multiple-sessions", "org.freedesktop.login1.hibernate-ignore-inhibit", "hybrid-sleep", - method_hybrid_sleep, error); } |