changeset 16701: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 79bc35a19de5
children 56f0049d3207
files libpurple/buddyicon.c libpurple/imgstore.c libpurple/imgstore.h
diffstat 3 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/buddyicon.c	Mon Apr 30 05:06:29 2007 +0000
+++ b/libpurple/buddyicon.c	Mon Apr 30 07:03:10 2007 +0000
@@ -223,7 +223,7 @@
 
 		/* We could make this O(1) by using another hash table, but
 		 * this is probably good enough. */
-		g_hash_table_foreach_remove(pointer_icon_cache, value_equals, img);
+		g_hash_table_foreach_remove(pointer_icon_cache, value_equals, (gpointer)img);
 	}
 }
 
--- a/libpurple/imgstore.c	Mon Apr 30 05:06:29 2007 +0000
+++ b/libpurple/imgstore.c	Mon Apr 30 07:03:10 2007 +0000
@@ -98,7 +98,7 @@
 	return img->size;
 }
 
-const char *purple_imgstore_get_filename(PurpleStoredImage *img)
+const char *purple_imgstore_get_filename(const PurpleStoredImage *img)
 {
 	g_return_val_if_fail(img != NULL, NULL);
 
--- a/libpurple/imgstore.h	Mon Apr 30 05:06:29 2007 +0000
+++ b/libpurple/imgstore.h	Mon Apr 30 07:03:10 2007 +0000
@@ -110,7 +110,7 @@
  * @return A pointer to the filename, which must not
  *         be freed or modified.
  */
-const char *purple_imgstore_get_filename(PurpleStoredImage *img);
+const char *purple_imgstore_get_filename(const PurpleStoredImage *img);
 
 /**
  * Returns an extension corresponding to the image's file type.