diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-10-21 22:40:46 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-10-21 22:46:28 +0800 |
commit | 10e8eb34e3ae90897bf2c2f1c08fa581e6394550 (patch) | |
tree | 28a5a528dd63c2a3ac7c0546386e848e530f44b7 /libempathy/empathy-contact.c | |
parent | ceabd0c25b48fc983066781d70d4fc6bd5905943 (diff) | |
download | gsoc2013-empathy-10e8eb34e3ae90897bf2c2f1c08fa581e6394550.tar gsoc2013-empathy-10e8eb34e3ae90897bf2c2f1c08fa581e6394550.tar.gz gsoc2013-empathy-10e8eb34e3ae90897bf2c2f1c08fa581e6394550.tar.bz2 gsoc2013-empathy-10e8eb34e3ae90897bf2c2f1c08fa581e6394550.tar.lz gsoc2013-empathy-10e8eb34e3ae90897bf2c2f1c08fa581e6394550.tar.xz gsoc2013-empathy-10e8eb34e3ae90897bf2c2f1c08fa581e6394550.tar.zst gsoc2013-empathy-10e8eb34e3ae90897bf2c2f1c08fa581e6394550.zip |
empathy-contact: cast data pointers
Diffstat (limited to 'libempathy/empathy-contact.c')
-rw-r--r-- | 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 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); } /** |