summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/io-pnm.c
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2001-07-18 04:25:04 +0000
committerDarin Adler <darin@src.gnome.org>2001-07-18 04:25:04 +0000
commitfd29fd0e3fe19f9f92b3f1b4a259109ef7f1f7e0 (patch)
treee93ca45c02f93da58c99e5f8b7de11cbfffb155b /gdk-pixbuf/io-pnm.c
parent977f7dc96f6827c6852afb6c227cc726bc213f5e (diff)
downloadgdk-pixbuf-fd29fd0e3fe19f9f92b3f1b4a259109ef7f1f7e0.tar.gz
Add missing <stdlib.h> include. Add ifdef so we compile without warnings
* gdk-pixbuf-csource.c: Add missing <stdlib.h> include. * io-png.c: (setup_png_transformations): Add ifdef so we compile without warnings with G_DISABLE_CHECKS on. * io-pnm.c: (gdk_pixbuf__pnm_image_load_increment): Add a missing const. * io-wbmp.c: (getin), (get_mbi): Add a missing const. * io-xbm.c: (gdk_pixbuf__xbm_image_load_real): Get rid of some unused locals and add an initial value to quiet the compiler's unintialized variable warning. * pixops/pixops.c: Put an ifdef around some dead code.
Diffstat (limited to 'gdk-pixbuf/io-pnm.c')
-rw-r--r--gdk-pixbuf/io-pnm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk-pixbuf/io-pnm.c b/gdk-pixbuf/io-pnm.c
index dfa5cb346..6bba2285c 100644
--- a/gdk-pixbuf/io-pnm.c
+++ b/gdk-pixbuf/io-pnm.c
@@ -840,7 +840,7 @@ gdk_pixbuf__pnm_image_load_increment (gpointer data,
PnmIOBuffer *inbuf;
guchar *old_byte;
guint old_nbytes;
- guchar *bufhd;
+ const guchar *bufhd;
guint num_left, spinguard;
gint retval;