From ac89706859250ba5eb93aad10a5a5b77b77da09c Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Fri, 3 May 2013 08:50:51 +0200 Subject: [PATCH] WRaster: Bugfix, added missing 'const' to RLoad* functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prototype of function changed in commit d1e1c13fa3bd60ba6c33011f58bbeb664e175198 but two of them were not updated in the source. Thanks to Rodolfo García Peñas for taking the time to test and report. --- wrlib/gif.c | 2 +- wrlib/nxpm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wrlib/gif.c b/wrlib/gif.c index 1ad638a5..1242daaf 100644 --- a/wrlib/gif.c +++ b/wrlib/gif.c @@ -39,7 +39,7 @@ static int InterlacedJumps[] = { 8, 8, 4, 2 }; /* * Partially based on code in gif2rgb from giflib, by Gershon Elber. */ -RImage *RLoadGIF(char *file, int index) +RImage *RLoadGIF(const char *file, int index) { RImage *image = NULL; unsigned char *cptr; diff --git a/wrlib/nxpm.c b/wrlib/nxpm.c index 0574fd94..37a48e8a 100644 --- a/wrlib/nxpm.c +++ b/wrlib/nxpm.c @@ -228,7 +228,7 @@ RImage *RGetImageFromXPMData(RContext * context, char **data) return NULL; } -RImage *RLoadXPM(RContext * context, char *file) +RImage *RLoadXPM(RContext * context, const char *file) { RImage *image = NULL; char line[LINEWIDTH + 1];