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:
parent
8629522884
commit
6993f088b1
2
dbus.c
2
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;
|
||||
|
|
Loading…
Reference in New Issue