mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-16 07:47:22 +01:00
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
1 changed files with 2 additions and 2 deletions
4
dbus.c
4
dbus.c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue