diff libpurple/protocols/msn/nexus.c @ 23541:6f866008b325

sadrul pointed out that I am dumb
author Ka-Hing Cheung <khc@hxbc.us>
date Sun, 13 Jul 2008 21:04:23 +0000
parents fa7d5c8b5141
children 860e5e210fc9
line wrap: on
line diff
--- a/libpurple/protocols/msn/nexus.c	Sun Jul 13 19:55:55 2008 +0000
+++ b/libpurple/protocols/msn/nexus.c	Sun Jul 13 21:04:23 2008 +0000
@@ -239,6 +239,15 @@
 	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)
 {
@@ -271,7 +280,7 @@
 	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);