comparison libpurple/buddyicon.c @ 16710:77cfd9bd6536

Get rid of two harmless warnings: buddyicon.c: In function 'image_deleting_cb': buddyicon.c:213: warning: passing argument 1 of 'purple_imgstore_get_filename' discards qualifiers from pointer target type buddyicon.c:226: warning: passing argument 3 of 'g_hash_table_foreach_remove' discards qualifiers from pointer target type
author Mark Doliner <mark@kingant.net>
date Mon, 30 Apr 2007 07:03:10 +0000
parents 61ddeb85ab86
children 10f175539cfe
comparison
equal deleted inserted replaced
16709:79bc35a19de5 16710:77cfd9bd6536
221 purple_buddy_icon_data_uncache_file(filename); 221 purple_buddy_icon_data_uncache_file(filename);
222 g_hash_table_remove(icon_data_cache, filename); 222 g_hash_table_remove(icon_data_cache, filename);
223 223
224 /* We could make this O(1) by using another hash table, but 224 /* We could make this O(1) by using another hash table, but
225 * this is probably good enough. */ 225 * this is probably good enough. */
226 g_hash_table_foreach_remove(pointer_icon_cache, value_equals, img); 226 g_hash_table_foreach_remove(pointer_icon_cache, value_equals, (gpointer)img);
227 } 227 }
228 } 228 }
229 229
230 static PurpleStoredImage * 230 static PurpleStoredImage *
231 purple_buddy_icon_data_new(guchar *icon_data, size_t icon_len, const char *filename) 231 purple_buddy_icon_data_new(guchar *icon_data, size_t icon_len, const char *filename)