summaryrefslogtreecommitdiff
path: root/socket/tcp-bsd.c
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2018-05-26 15:58:21 +0000
committerOlivier CrĂȘte <olivier.crete@collabora.com>2018-06-12 16:57:03 +0200
commit23b5926885683987ac8706dddd8cbc195ba40d18 (patch)
treeab490e59e5bd29a0619243d77267e3d0f63253dc /socket/tcp-bsd.c
parenta353ab3beb5182857f24b9bf8771da2fa3f8c79a (diff)
downloadlibnice-23b5926885683987ac8706dddd8cbc195ba40d18.tar.gz
Fix cast-function-type warning introduced in GCC 8
This is new warning introduced with GCC 8. This is being fixed by using appropriate function, like g_queue_free_full/g_list_free_full or by casting to GCallback before casting to the target function signature. Closes: #46
Diffstat (limited to 'socket/tcp-bsd.c')
-rw-r--r--socket/tcp-bsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/socket/tcp-bsd.c b/socket/tcp-bsd.c
index 3e5f5a8..285d323 100644
--- a/socket/tcp-bsd.c
+++ b/socket/tcp-bsd.c
@@ -312,7 +312,7 @@ socket_send_message (NiceSocket *sock,
/* Queue the message and send it later. */
nice_socket_queue_send_with_callback (&priv->send_queue,
message, 0, message_len, FALSE, sock->fileno, &priv->io_source,
- priv->context, (GSourceFunc) socket_send_more, sock);
+ priv->context, socket_send_more, sock);
ret = message_len;
}
@@ -321,7 +321,7 @@ socket_send_message (NiceSocket *sock,
/* Partial send. */
nice_socket_queue_send_with_callback (&priv->send_queue,
message, ret, message_len, TRUE, sock->fileno, &priv->io_source,
- priv->context, (GSourceFunc) socket_send_more, sock);
+ priv->context, socket_send_more, sock);
ret = message_len;
}
} else {
@@ -330,7 +330,7 @@ socket_send_message (NiceSocket *sock,
/* Queue the message and send it later. */
nice_socket_queue_send_with_callback (&priv->send_queue,
message, 0, message_len, FALSE, sock->fileno, &priv->io_source,
- priv->context, (GSourceFunc) socket_send_more, sock);
+ priv->context, socket_send_more, sock);
ret = message_len;
} else {
/* non reliable send, so we shouldn't queue the message */