Mercurial > pidgin
comparison 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 |
comparison
equal
deleted
inserted
replaced
23540:fa7d5c8b5141 | 23541:6f866008b325 |
---|---|
237 int id; | 237 int id; |
238 GSourceFunc cb; | 238 GSourceFunc cb; |
239 gpointer data; | 239 gpointer data; |
240 }; | 240 }; |
241 | 241 |
242 #if !GLIB_CHECK_VERSION(2, 12, 0) | |
243 static gboolean | |
244 nexus_remove_all_cb(gpointer key, gpointer val, gpointer data) | |
245 { | |
246 return TRUE; | |
247 } | |
248 #endif | |
249 | |
250 | |
242 static gboolean | 251 static gboolean |
243 nexus_parse_token(MsnNexus *nexus, int id, xmlnode *node) | 252 nexus_parse_token(MsnNexus *nexus, int id, xmlnode *node) |
244 { | 253 { |
245 char *token_str, *expiry_str; | 254 char *token_str, *expiry_str; |
246 const char *id_str; | 255 const char *id_str; |
269 | 278 |
270 #if GLIB_CHECK_VERSION(2, 12, 0) | 279 #if GLIB_CHECK_VERSION(2, 12, 0) |
271 g_hash_table_remove_all(nexus->tokens[id].token); | 280 g_hash_table_remove_all(nexus->tokens[id].token); |
272 #else | 281 #else |
273 g_hash_table_foreach_remove(nexus->tokens[id].token, | 282 g_hash_table_foreach_remove(nexus->tokens[id].token, |
274 (GHRFunc)g_hash_table_lookup, NULL); | 283 nexus_remove_all_cb, NULL); |
275 #endif | 284 #endif |
276 | 285 |
277 elems = g_strsplit(token_str, "&", 0); | 286 elems = g_strsplit(token_str, "&", 0); |
278 | 287 |
279 for (cur = elems; *cur != NULL; cur++) { | 288 for (cur = elems; *cur != NULL; cur++) { |