From 10e8eb34e3ae90897bf2c2f1c08fa581e6394550 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 21 Oct 2009 15:40:46 +0100 Subject: empathy-contact: cast data pointers --- libempathy/empathy-contact.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libempathy/empathy-contact.c') diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index 4537d4043..83ffd0780 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -948,7 +948,8 @@ empathy_contact_load_avatar_cache (EmpathyContact *contact, if (data) { DEBUG ("Avatar loaded from %s", filename); - avatar = empathy_avatar_new (data, len, NULL, g_strdup (token), filename); + avatar = empathy_avatar_new ((guchar *) data, len, NULL, g_strdup (token), + filename); empathy_contact_set_avatar (contact, avatar); empathy_avatar_unref (avatar); } @@ -1048,7 +1049,8 @@ empathy_avatar_save_to_file (EmpathyAvatar *self, const gchar *filename, GError **error) { - return g_file_set_contents (filename, self->data, self->len, error); + return g_file_set_contents (filename, (const gchar *) self->data, self->len, + error); } /** -- cgit v1.2.3