summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-27 14:28:02 +0300
committermonsta <[email protected]>2016-01-27 14:28:02 +0300
commit73f3250122c85809d6cb07a15b979073fc2ea8e5 (patch)
treed3c08601c3330383bf44f84a8a586d2df00f7b41
parent358a9f3020bbc3eb53d9da85ec96692d31fe40d9 (diff)
downloadmate-control-center-73f3250122c85809d6cb07a15b979073fc2ea8e5.tar.bz2
mate-control-center-73f3250122c85809d6cb07a15b979073fc2ea8e5.tar.xz
common: fix build warnings about incorrect pointer types
-rw-r--r--capplets/about-me/e-image-chooser.c4
-rw-r--r--capplets/common/theme-thumbnail.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/capplets/about-me/e-image-chooser.c b/capplets/about-me/e-image-chooser.c
index 56874b53..cf5d1c68 100644
--- a/capplets/about-me/e-image-chooser.c
+++ b/capplets/about-me/e-image-chooser.c
@@ -189,7 +189,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, (guchar *) data, length, NULL);
gdk_pixbuf_loader_close (loader, NULL);
pixbuf = gdk_pixbuf_loader_get_pixbuf (loader);
@@ -338,7 +338,7 @@ image_drag_data_received_cb (GtkWidget *widget,
target_type = gdk_atom_name (gtk_selection_data_get_target (selection_data));
if (!strcmp (target_type, URI_LIST_TYPE)) {
- const char *data = gtk_selection_data_get_data (selection_data);
+ const char *data = (const char *) gtk_selection_data_get_data (selection_data);
char *uri;
GFile *file;
GInputStream *istream;
diff --git a/capplets/common/theme-thumbnail.c b/capplets/common/theme-thumbnail.c
index 198cb4de..a31e24fd 100644
--- a/capplets/common/theme-thumbnail.c
+++ b/capplets/common/theme-thumbnail.c
@@ -547,16 +547,16 @@ create_icon_theme_pixbuf (ThemeThumbnailData *theme_thumbnail_data)
static void
-handle_bytes (const gchar *buffer,
+handle_bytes (const guint8 *buffer,
gint bytes_read,
ThemeThumbnailData *theme_thumbnail_data)
{
- const gchar *ptr;
+ const guint8 *ptr;
ptr = buffer;
while (bytes_read > 0)
{
- char *nil;
+ guint8 *nil;
switch (theme_thumbnail_data->status)
{
@@ -685,7 +685,7 @@ message_from_capplet (GIOChannel *source,
switch (status)
{
case G_IO_STATUS_NORMAL:
- handle_bytes (buffer, bytes_read, theme_thumbnail_data);
+ handle_bytes ((guint8 *) buffer, bytes_read, theme_thumbnail_data);
if (theme_thumbnail_data->status == WRITING_PIXBUF_DATA)
{