diff options
author | Christophe CURIS <christophe.curis@free.fr> | 2013-05-01 10:39:37 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-05-31 18:09:19 -0700 |
commit | 01ee6b9c500cd9c67f167e68c8383e8c58db5ddf (patch) | |
tree | b690f225a97f12422a18e4aeb78dcb2f63264c01 | |
parent | 980e9f851e47d31eed9635a6399a23d1456548d0 (diff) |
Added 'const' qualifier to the filename argument to internal functions
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/RdFToI.c | 4 | ||||
-rw-r--r-- | src/WrFFrI.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/RdFToI.c b/src/RdFToI.c index e56e3f8..83340a6 100644 --- a/src/RdFToI.c +++ b/src/RdFToI.c @@ -49,7 +49,7 @@ #endif #endif -LFUNC(OpenReadFile, int, (char *filename, xpmData *mdata)); +LFUNC(OpenReadFile, int, (const char *filename, xpmData *mdata)); LFUNC(xpmDataClose, void, (xpmData *mdata)); FUNC(xpmPipeThrough, FILE*, (int fd, @@ -194,7 +194,7 @@ fail2: */ static int OpenReadFile( - char *filename, + const char *filename, xpmData *mdata) { if (!filename) { diff --git a/src/WrFFrI.c b/src/WrFFrI.c index d074516..bf47481 100644 --- a/src/WrFFrI.c +++ b/src/WrFFrI.c @@ -63,7 +63,7 @@ LFUNC(WritePixels, int, (FILE *file, unsigned int width, unsigned int height, LFUNC(WriteExtensions, void, (FILE *file, XpmExtension *ext, unsigned int num)); -LFUNC(OpenWriteFile, int, (char *filename, xpmData *mdata)); +LFUNC(OpenWriteFile, int, (const char *filename, xpmData *mdata)); LFUNC(xpmDataClose, void, (xpmData *mdata)); int @@ -319,7 +319,7 @@ FUNC(xpmPipeThrough, FILE*, (int fd, */ static int OpenWriteFile( - char *filename, + const char *filename, xpmData *mdata) { if (!filename) { |