[gtk+] Cast to gchar* to fix a compilation warning



commit e21355495a056488fdea98372de2754530b3c86a
Author: Javier Jardón <jjardon gnome org>
Date:   Sat Oct 24 17:09:01 2009 +0200

    Cast to gchar* to fix a compilation warning

 gdk-pixbuf/io-pnm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk-pixbuf/io-pnm.c b/gdk-pixbuf/io-pnm.c
index 2f9fbaa..f86826e 100644
--- a/gdk-pixbuf/io-pnm.c
+++ b/gdk-pixbuf/io-pnm.c
@@ -242,7 +242,7 @@ pnm_read_next_value (PnmIOBuffer *inbuf, gint max_length, guint *value, GError *
 	    return PNM_SUSPEND;
 	
 	/* get the value */
-	result = strtol (buf, &endptr, 10);
+	result = strtol ((gchar *)buf, &endptr, 10);
 	if (*endptr != '\0' || result < 0 || result > G_MAXUINT) {
 		g_set_error_literal (error,
                                      GDK_PIXBUF_ERROR,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]