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);
}
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),