From dec15e9263cadae02f4f51463860248af40475d0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 24 Jun 2011 20:41:22 +0200 Subject: [PATCH] logind: fix generation of bus arrays --- src/logind-dbus.c | 6 +++--- src/logind-seat-dbus.c | 2 +- src/logind-user-dbus.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/logind-dbus.c b/src/logind-dbus.c index 693906ef70e..2a857494783 100644 --- a/src/logind-dbus.c +++ b/src/logind-dbus.c @@ -589,7 +589,7 @@ static DBusHandlerResult manager_message_handler( dbus_message_iter_init_append(reply, &iter); - if (!dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, "susso", &sub)) + if (!dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, "(susso)", &sub)) goto oom; HASHMAP_FOREACH(session, m->sessions, i) { @@ -635,7 +635,7 @@ static DBusHandlerResult manager_message_handler( dbus_message_iter_init_append(reply, &iter); - if (!dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, "uso", &sub)) + if (!dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, "(uso)", &sub)) goto oom; HASHMAP_FOREACH(user, m->users, i) { @@ -679,7 +679,7 @@ static DBusHandlerResult manager_message_handler( dbus_message_iter_init_append(reply, &iter); - if (!dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, "so", &sub)) + if (!dbus_message_iter_open_container(&iter, DBUS_TYPE_ARRAY, "(so)", &sub)) goto oom; HASHMAP_FOREACH(seat, m->seats, i) { diff --git a/src/logind-seat-dbus.c b/src/logind-seat-dbus.c index ad0298e7a7f..669e83e82d5 100644 --- a/src/logind-seat-dbus.c +++ b/src/logind-seat-dbus.c @@ -102,7 +102,7 @@ static int bus_seat_append_sessions(DBusMessageIter *i, const char *property, vo assert(property); assert(s); - if (!dbus_message_iter_open_container(i, DBUS_TYPE_ARRAY, "so", &sub)) + if (!dbus_message_iter_open_container(i, DBUS_TYPE_ARRAY, "(so)", &sub)) return -ENOMEM; LIST_FOREACH(sessions_by_seat, session, s->sessions) { diff --git a/src/logind-user-dbus.c b/src/logind-user-dbus.c index 6d7e8e70309..7263d1b7572 100644 --- a/src/logind-user-dbus.c +++ b/src/logind-user-dbus.c @@ -121,7 +121,7 @@ static int bus_user_append_sessions(DBusMessageIter *i, const char *property, vo assert(property); assert(u); - if (!dbus_message_iter_open_container(i, DBUS_TYPE_ARRAY, "so", &sub)) + if (!dbus_message_iter_open_container(i, DBUS_TYPE_ARRAY, "(so)", &sub)) return -ENOMEM; LIST_FOREACH(sessions_by_user, session, u->sessions) {