From 13d4452306f71fb8f5f2e2bafbfc6b6693e0b37c Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 3 Jun 2007 02:54:32 +0000 Subject: Fix compilation warnings in mail folder (#437935). svn path=/trunk/; revision=33628 --- mail/mail-signature-editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mail/mail-signature-editor.c') diff --git a/mail/mail-signature-editor.c b/mail/mail-signature-editor.c index eba4bf0bef..011f9f7a05 100644 --- a/mail/mail-signature-editor.c +++ b/mail/mail-signature-editor.c @@ -108,7 +108,7 @@ get_text (Bonobo_PersistStream persist, const char *format, CORBA_Environment *e stream_mem = BONOBO_STREAM_MEM (stream); text = g_byte_array_new (); - g_byte_array_append (text, stream_mem->buffer, stream_mem->pos); + g_byte_array_append (text, (unsigned char *)stream_mem->buffer, stream_mem->pos); bonobo_object_unref (BONOBO_OBJECT (stream)); return text; @@ -172,7 +172,7 @@ menu_file_save_cb (BonoboUIComponent *uic, void *user_data, const char *path) goto exception; } - if (write_all (fd, text->data, text->len) == -1) { + if (write_all (fd, (char *)text->data, text->len) == -1) { g_byte_array_free (text, TRUE); close (fd); goto exception; -- cgit