From f86c39058aa20de2c2ca352b27b35ddd14c811e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Wed, 20 Nov 2013 16:37:07 -0800 Subject: [PATCH] logind: Use dbus_bool_t for bool types in dbus calls The gcc built-in 'bool' type is not the same size as dbus_bool_t, which is an uint32_t. Passing a pointer to bool where dbus expects a uint32_t * doesn't work. Reviewed-by: David Herrmann --- src/logind-util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/logind-util.c b/src/logind-util.c index 6bd0c26d..a58265c8 100644 --- a/src/logind-util.c +++ b/src/logind-util.c @@ -69,8 +69,9 @@ weston_logind_take_device(struct weston_logind *wl, uint32_t major, uint32_t minor, bool *paused_out) { DBusMessage *m, *reply; - bool b, paused; + bool b; int r, fd; + dbus_bool_t paused; m = dbus_message_new_method_call("org.freedesktop.login1", wl->spath, @@ -287,7 +288,7 @@ get_active_cb(DBusPendingCall *pending, void *data) DBusMessage *m; DBusMessageIter iter, sub; int type; - bool b; + dbus_bool_t b; dbus_pending_call_unref(wl->pending_active); wl->pending_active = NULL;