summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-11-08 17:49:59 +0100
committerKay Sievers <kay@vrfy.org>2013-11-08 17:49:59 +0100
commit4aa2beacb1f9996f0352ec4221f8ef47ae2b7c66 (patch)
tree399fdbe8a30553d3b9b2606fb1bd8c8fec2fd27d /src/systemctl/systemctl.c
parent41dd15e474accdeb643c8319e257e6414c1c498a (diff)
systemctl: fix "reboot" call
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r--src/systemctl/systemctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index 73fdbdbed6..c2f7836a5e 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -1936,11 +1936,11 @@ static int check_inhibitors(sd_bus *bus, enum action a) {
/* If logind is not around, then there are no inhibitors... */
return 0;
- r = sd_bus_message_enter_container(reply, SD_BUS_TYPE_ARRAY, "ssssuu");
+ r = sd_bus_message_enter_container(reply, SD_BUS_TYPE_ARRAY, "(ssssuu)");
if (r < 0)
return bus_log_parse_error(r);
- while ((r = sd_bus_message_read(reply, "ssssuu", &what, &who, &why, &mode, &uid, &pid)) > 0) {
+ while ((r = sd_bus_message_read(reply, "(ssssuu)", &what, &who, &why, &mode, &uid, &pid)) > 0) {
_cleanup_free_ char *comm = NULL, *user = NULL;
_cleanup_strv_free_ char **sv = NULL;