From 6993f088b109377e8a2539375fa77f152a6fa166 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 28 Apr 2009 22:37:48 +0200 Subject: [PATCH] dbus: use dbus_bool_t for pushing boolean dbus_bool_t is 32 bits (has to be for the wire protocol) but our bool is only 8 bits. Signed-off-by: Julien Danjou --- dbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbus.c b/dbus.c index 59312386..43201aa6 100644 --- a/dbus.c +++ b/dbus.c @@ -325,7 +325,7 @@ a_dbus_process_request(DBusConnection *dbus_connection, DBusMessage *msg) { case DBUS_TYPE_BOOLEAN: { - bool b = lua_toboolean(globalconf.L, i + 1); + dbus_bool_t b = lua_toboolean(globalconf.L, i + 1); dbus_message_iter_append_basic(&iter, DBUS_TYPE_BOOLEAN, &b); } break;