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 <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-28 22:37:48 +02:00
parent 8629522884
commit 6993f088b1
1 changed files with 1 additions and 1 deletions

2
dbus.c
View File

@ -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;