[PATCH 5/5] dundee: 32bits boolean should be used due to dbus in relevant places

Tomasz Bursztyka tomasz.bursztyka at linux.intel.com
Sun Sep 1 23:47:39 PDT 2013


---
 plugins/dundee.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/plugins/dundee.c b/plugins/dundee.c
index e49f0c8..b72c69e 100644
--- a/plugins/dundee.c
+++ b/plugins/dundee.c
@@ -539,7 +539,10 @@ static gboolean device_changed(DBusConnection *conn,
 	 * That means we don't have to order here.
 	 */
 	if (g_str_equal(key, "Active")) {
-		dbus_message_iter_get_basic(&value, &info->active);
+		dbus_bool_t active;
+
+		dbus_message_iter_get_basic(&value, &active);
+		info->active = active;
 
 		DBG("%s Active %d", info->path, info->active);
 
@@ -595,7 +598,10 @@ static void add_device(const char *path, DBusMessageIter *properties)
 		dbus_message_iter_recurse(&entry, &value);
 
 		if (g_str_equal(key, "Active")) {
-			dbus_message_iter_get_basic(&value, &info->active);
+			dbus_bool_t active;
+
+			dbus_message_iter_get_basic(&value, &active);
+			info->active = active;
 
 			DBG("%s Active %d", info->path, info->active);
 		} else if (g_str_equal(key, "Settings")) {
-- 
1.8.3.2




More information about the connman mailing list