From: Marcel Holtmann Date: Thu, 24 May 2018 13:46:16 +0000 (+0200) Subject: obex: Fix compiler warning from casting functions X-Git-Tag: accepted/tizen/unified/20190522.085452~1^2~72 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F10%2F205010%2F1;p=platform%2Fupstream%2Fbluez.git obex: Fix compiler warning from casting functions Change-Id: I62a902faf609375da3a470ba2c39d1172ed2030f Signed-off-by: Amit Purwar --- diff --git a/obexd/client/session.c b/obexd/client/session.c index 548b0e3..c0f873b 100755 --- a/obexd/client/session.c +++ b/obexd/client/session.c @@ -229,6 +229,11 @@ static void file_data_free(void *process_data) g_free(data); } +static void request_free(void *data, void *user_data) +{ + pending_request_free(data); +} + static void session_free(struct obc_session *session) { DBG("%p", session); @@ -237,8 +242,7 @@ static void session_free(struct obc_session *session) g_source_remove(session->process_id); if (session->queue) { - g_queue_foreach(session->queue, (GFunc) pending_request_free, - NULL); + g_queue_foreach(session->queue, request_free, NULL); g_queue_free(session->queue); }