chiark / gitweb /
man: fix typo
[elogind.git] / src / login / logind-dbus.c
index 64716789e34d7a5c3a600a12519f05600d4ad3e9..dcfd25d69b06d9f3c4ee602edb35f2d35ff44096 100644 (file)
@@ -371,7 +371,7 @@ static int method_list_seats(sd_bus *bus, sd_bus_message *message, void *userdat
                 if (!p)
                         return sd_bus_reply_method_errno(bus, message, -ENOMEM, NULL);
 
-                r = sd_bus_message_append(reply, "so", seat->id, p);
+                r = sd_bus_message_append(reply, "(so)", seat->id, p);
                 if (r < 0)
                         return sd_bus_reply_method_errno(bus, message, r, NULL);
         }
@@ -400,7 +400,7 @@ static int method_list_inhibitors(sd_bus *bus, sd_bus_message *message, void *us
 
         HASHMAP_FOREACH(inhibitor, m->inhibitors, i) {
 
-                r = sd_bus_message_append(reply, "ssssuu",
+                r = sd_bus_message_append(reply, "(ssssuu)",
                                           strempty(inhibit_what_to_string(inhibitor->what)),
                                           strempty(inhibitor->who),
                                           strempty(inhibitor->why),
@@ -1369,7 +1369,7 @@ static int send_prepare_for(Manager *m, InhibitWhat w, bool _active) {
                                   "org.freedesktop.login1.Manager",
                                   signal_name[w],
                                   "b",
-                                  &active);
+                                  active);
 }
 
 int bus_manager_shutdown_or_sleep_now_or_later(