From 73f3250122c85809d6cb07a15b979073fc2ea8e5 Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 27 Jan 2016 14:28:02 +0300 Subject: common: fix build warnings about incorrect pointer types --- capplets/common/theme-thumbnail.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'capplets/common') 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) { -- cgit v1.2.1