pidgin: 771526d9: sadrul pointed out that I am dumb

khc at pidgin.im khc at pidgin.im
Sun Jul 13 17:10:39 EDT 2008


-----------------------------------------------------------------
Revision: 771526d966c8bbd90692bc9da35781ffb79985fa
Ancestor: 07f445aaf2e16428ef672f05dba19522cf96ad6e
Author: khc at pidgin.im
Date: 2008-07-13T21:04:23
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/771526d966c8bbd90692bc9da35781ffb79985fa

Modified files:
        libpurple/protocols/msn/nexus.c

ChangeLog: 

sadrul pointed out that I am dumb


-------------- next part --------------
============================================================
--- libpurple/protocols/msn/nexus.c	379b22d3fa2b985f84b761bced851e96e6445e50
+++ libpurple/protocols/msn/nexus.c	fabbea9a7e5fb9741d3c407c606602ef9e676b71
@@ -239,7 +239,16 @@ struct _MsnNexusUpdateData {
 	gpointer data;
 };
 
+#if !GLIB_CHECK_VERSION(2, 12, 0)
 static gboolean
+nexus_remove_all_cb(gpointer key, gpointer val, gpointer data)
+{
+	return TRUE;
+}
+#endif
+
+
+static gboolean
 nexus_parse_token(MsnNexus *nexus, int id, xmlnode *node)
 {
 	char *token_str, *expiry_str;
@@ -271,7 +280,7 @@ nexus_parse_token(MsnNexus *nexus, int i
 	g_hash_table_remove_all(nexus->tokens[id].token);
 #else
 	g_hash_table_foreach_remove(nexus->tokens[id].token,
-		(GHRFunc)g_hash_table_lookup, NULL);
+		nexus_remove_all_cb, NULL);
 #endif
 
 	elems = g_strsplit(token_str, "&", 0);


More information about the Commits mailing list