dbus: use dbus_bool_t when reading messages
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
6993f088b1
commit
0c800d9612
4
dbus.c
4
dbus.c
|
@ -149,7 +149,7 @@ a_dbus_message_iter(DBusMessageIter *iter)
|
||||||
break;
|
break;
|
||||||
case DBUS_TYPE_BOOLEAN:
|
case DBUS_TYPE_BOOLEAN:
|
||||||
{
|
{
|
||||||
const bool *b;
|
const dbus_bool_t *b;
|
||||||
dbus_message_iter_get_fixed_array(&sub, &b, &datalen);
|
dbus_message_iter_get_fixed_array(&sub, &b, &datalen);
|
||||||
lua_createtable(globalconf.L, datalen, 0);
|
lua_createtable(globalconf.L, datalen, 0);
|
||||||
for(int i = 0; i < datalen; i++)
|
for(int i = 0; i < datalen; i++)
|
||||||
|
@ -201,7 +201,7 @@ a_dbus_message_iter(DBusMessageIter *iter)
|
||||||
break;
|
break;
|
||||||
case DBUS_TYPE_BOOLEAN:
|
case DBUS_TYPE_BOOLEAN:
|
||||||
{
|
{
|
||||||
bool b;
|
dbus_bool_t b;
|
||||||
dbus_message_iter_get_basic(iter, &b);
|
dbus_message_iter_get_basic(iter, &b);
|
||||||
lua_pushboolean(globalconf.L, b);
|
lua_pushboolean(globalconf.L, b);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue