dbus: use dbus_bool_t when reading messages

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-28 22:40:02 +02:00
parent 6993f088b1
commit 0c800d9612
1 changed files with 2 additions and 2 deletions

4
dbus.c
View File

@ -149,7 +149,7 @@ a_dbus_message_iter(DBusMessageIter *iter)
break;
case DBUS_TYPE_BOOLEAN:
{
const bool *b;
const dbus_bool_t *b;
dbus_message_iter_get_fixed_array(&sub, &b, &datalen);
lua_createtable(globalconf.L, datalen, 0);
for(int i = 0; i < datalen; i++)
@ -201,7 +201,7 @@ a_dbus_message_iter(DBusMessageIter *iter)
break;
case DBUS_TYPE_BOOLEAN:
{
bool b;
dbus_bool_t b;
dbus_message_iter_get_basic(iter, &b);
lua_pushboolean(globalconf.L, b);
}