[empathy] empathy-contact: cast data pointers
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] empathy-contact: cast data pointers
- Date: Wed, 21 Oct 2009 15:02:11 +0000 (UTC)
commit 10e8eb34e3ae90897bf2c2f1c08fa581e6394550
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Oct 21 15:40:46 2009 +0100
empathy-contact: cast data pointers
libempathy/empathy-contact.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 4537d40..83ffd07 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);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]