summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ernberg <john.ernberg@actia.se>2016-04-22 13:10:06 +0000
committerDenis Kenzior <denkenz@gmail.com>2016-04-22 15:25:54 -0500
commit27b3d904ea03b9cb8851472dc2936714777da209 (patch)
treedf69cee90a4bbd3b86585ff40ba60a1b4ffff70c
parenta34bf08359ec2906d8de5077d4bf009570054dcd (diff)
downloadofono-27b3d904ea03b9cb8851472dc2936714777da209.tar.gz
bluez4: Remove unneeded casts
-rw-r--r--plugins/bluez4.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/bluez4.c b/plugins/bluez4.c
index 6a29d9fa..0558da31 100644
--- a/plugins/bluez4.c
+++ b/plugins/bluez4.c
@@ -225,8 +225,7 @@ void bluetooth_parse_properties(DBusMessage *reply, const char *property, ...)
}
done:
- g_slist_foreach(prop_handlers, (GFunc) g_free, NULL);
- g_slist_free(prop_handlers);
+ g_slist_free_full(prop_handlers, g_free);
}
static void parse_uuids(DBusMessageIter *array, gpointer user_data)
@@ -692,7 +691,7 @@ static void find_adapter_cb(DBusPendingCall *call, gpointer user_data)
adapter_any_path = g_strdup(path);
- g_slist_foreach(server_list, (GFunc) add_record, NULL);
+ g_slist_foreach(server_list, add_record, NULL);
done:
dbus_message_unref(reply);
@@ -820,7 +819,7 @@ static void bluetooth_disconnect(DBusConnection *conn, void *user_data)
g_hash_table_foreach(uuid_hash, bluetooth_remove, NULL);
- g_slist_foreach(server_list, (GFunc) remove_service_handle, NULL);
+ g_slist_foreach(server_list, remove_service_handle, NULL);
}
static guint bluetooth_watch;