summaryrefslogtreecommitdiff
path: root/src/bytestream-factory.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-03-24 14:59:45 +0000
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-03-24 14:59:45 +0000
commitb629d0cbd10f9585cd80cd92b0af9b162441c96f (patch)
treebcf6723056af46e0f794e130b611100d8728aa33 /src/bytestream-factory.c
parent04c0b036e18d6307d3960d14bb8fbb48b6c2dc28 (diff)
downloadtelepathy-gabble-b629d0cbd10f9585cd80cd92b0af9b162441c96f.tar.gz
properly cast socks5_proxy_query_reply_cb user_data
Diffstat (limited to 'src/bytestream-factory.c')
-rw-r--r--src/bytestream-factory.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bytestream-factory.c b/src/bytestream-factory.c
index d83904132..fce53acf6 100644
--- a/src/bytestream-factory.c
+++ b/src/bytestream-factory.c
@@ -217,7 +217,7 @@ socks5_proxy_query_reply_cb (GabbleConnection *conn,
LmMessageNode *query, *streamhost;
const gchar *jid, *host, *port;
GabbleSocks5Proxy *proxy;
- gboolean fallback = (gboolean) user_data;
+ gboolean fallback = GPOINTER_TO_INT (user_data);
if (lm_message_get_sub_type (reply_msg) != LM_MESSAGE_SUB_TYPE_RESULT)
return LM_HANDLER_RESULT_REMOVE_MESSAGE;
@@ -273,7 +273,8 @@ send_proxy_query (GabbleBytestreamFactory *self,
')', NULL);
_gabble_connection_send_with_reply (priv->conn, query,
- socks5_proxy_query_reply_cb, G_OBJECT (self), (gpointer) fallback, NULL);
+ socks5_proxy_query_reply_cb, G_OBJECT (self), GINT_TO_POINTER (fallback),
+ NULL);
lm_message_unref (query);
}