changeset 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 d8e83a6a4127
files libpurple/protocols/msn/nexus.c
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
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);