summaryrefslogtreecommitdiff
path: root/gobex/gobex.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2018-05-23 16:32:22 +0200
committerMarcel Holtmann <marcel@holtmann.org>2018-05-23 16:32:22 +0200
commit67a2c40e65703cccd9f0706be70cac04693677f5 (patch)
tree4db807531bbe76e6a7bd53ce4d4f5c54ca3b3dc7 /gobex/gobex.c
parent01333078f591969f885bb94187a91d35e8fd5388 (diff)
downloadbluez-67a2c40e65703cccd9f0706be70cac04693677f5.tar.gz
gobex: Fix compiler warning from casting functions
Diffstat (limited to 'gobex/gobex.c')
-rw-r--r--gobex/gobex.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gobex/gobex.c b/gobex/gobex.c
index 0e5817e23..ef5355ae9 100644
--- a/gobex/gobex.c
+++ b/gobex/gobex.c
@@ -1508,6 +1508,11 @@ GObex *g_obex_ref(GObex *obex)
return obex;
}
+static void tx_queue_free(void *data, void *user_data)
+{
+ pending_pkt_free(data);
+}
+
void g_obex_unref(GObex *obex)
{
int refs;
@@ -1521,7 +1526,7 @@ void g_obex_unref(GObex *obex)
g_slist_free_full(obex->req_handlers, g_free);
- g_queue_foreach(obex->tx_queue, (GFunc) pending_pkt_free, NULL);
+ g_queue_foreach(obex->tx_queue, tx_queue_free, NULL);
g_queue_free(obex->tx_queue);
if (obex->io != NULL)