From 646455c0f94ac047b3ed44dbd7e796f746451700 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 3 Jun 2007 02:45:22 +0000 Subject: Fix compilation warnings in widgets folder (#441014). svn path=/trunk/; revision=33626 --- widgets/misc/e-image-chooser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'widgets/misc/e-image-chooser.c') diff --git a/widgets/misc/e-image-chooser.c b/widgets/misc/e-image-chooser.c index 7fdb2cb415..b5004aca7f 100644 --- a/widgets/misc/e-image-chooser.c +++ b/widgets/misc/e-image-chooser.c @@ -232,7 +232,7 @@ set_image_from_data (EImageChooser *chooser, GdkPixbufLoader *loader = gdk_pixbuf_loader_new (); GdkPixbuf *pixbuf; - gdk_pixbuf_loader_write (loader, data, length, NULL); + gdk_pixbuf_loader_write (loader, (unsigned char *)data, length, NULL); gdk_pixbuf_loader_close (loader, NULL); pixbuf = gdk_pixbuf_loader_get_pixbuf (loader); @@ -413,15 +413,15 @@ image_drag_data_received_cb (GtkWidget *widget, GnomeVFSResult result; GnomeVFSHandle *handle; char *uri; - char *nl = strstr (selection_data->data, "\r\n"); + char *nl = strstr ((char *)selection_data->data, "\r\n"); char *buf = NULL; /* Why can't we change the info parameter to a GnomeVFSFileInfo and use that? */ GnomeVFSFileInfo info; if (nl) - uri = g_strndup (selection_data->data, nl - (char*)selection_data->data); + uri = g_strndup ((char *)selection_data->data, nl - (char*)selection_data->data); else - uri = g_strdup (selection_data->data); + uri = g_strdup ((char *)selection_data->data); result = gnome_vfs_open (&handle, uri, GNOME_VFS_OPEN_READ); if (result == GNOME_VFS_OK) { -- cgit v1.2.3