From: Christophe CURIS <[email protected]>
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 1ad638a..1242daa 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 0574fd9..37a48e8 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];
--
1.7.10.4
--
To unsubscribe, send mail to [email protected].