dundee: Fix wrong casting
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Tue, 5 Jun 2012 16:27:35 +0000 (18:27 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 6 Jun 2012 11:58:48 +0000 (14:58 +0300)
plugins/dundee.c

index 19479ac..045f639 100644 (file)
@@ -350,9 +350,9 @@ static int dundee_probe(struct connman_device *device)
        g_hash_table_iter_init(&iter, dundee_devices);
 
        while (g_hash_table_iter_next(&iter, &key, &value) == TRUE) {
-               struct connman_device *device_dun = value;
+               struct dundee_data *info = value;
 
-               if (device == device_dun)
+               if (device == info->device)
                        return 0;
        }