[Telepathy-commits] [telepathy-gabble/master] im-factory: use GUINT_TO_POINTER for handles

Simon McVittie simon.mcvittie at collabora.co.uk
Sun Feb 8 05:47:17 PST 2009


---
 src/im-factory.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/im-factory.c b/src/im-factory.c
index c190125..b5fdcc0 100644
--- a/src/im-factory.c
+++ b/src/im-factory.c
@@ -240,7 +240,7 @@ im_factory_message_cb (LmMessageHandler *handler,
       return LM_HANDLER_RESULT_REMOVE_MESSAGE;
     }
 
-  chan = g_hash_table_lookup (priv->channels, GINT_TO_POINTER (handle));
+  chan = g_hash_table_lookup (priv->channels, GUINT_TO_POINTER (handle));
 
   if (chan == NULL)
     {
@@ -376,7 +376,7 @@ new_im_channel (GabbleImFactory *fac,
 
   g_signal_connect (chan, "closed", (GCallback) im_channel_closed_cb, fac);
 
-  g_hash_table_insert (priv->channels, GINT_TO_POINTER (handle), chan);
+  g_hash_table_insert (priv->channels, GUINT_TO_POINTER (handle), chan);
 
   if (request_token != NULL)
     request_tokens = g_slist_prepend (NULL, request_token);
-- 
1.5.6.5




More information about the telepathy-commits mailing list