aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pj_open_lib.c2
-rw-r--r--src/proj_api.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pj_open_lib.c b/src/pj_open_lib.c
index 0a11dab4..524a7505 100644
--- a/src/pj_open_lib.c
+++ b/src/pj_open_lib.c
@@ -99,7 +99,7 @@ void pj_set_searchpath ( int count, const char **path )
/************************************************************************/
PAFile
-pj_open_lib(projCtx ctx, char *name, char *mode) {
+pj_open_lib(projCtx ctx, const char *name, const char *mode) {
char fname[MAX_PATH_FILENAME+1];
const char *sysname;
PAFile fid;
diff --git a/src/proj_api.h b/src/proj_api.h
index d93e4059..0299cdeb 100644
--- a/src/proj_api.h
+++ b/src/proj_api.h
@@ -143,7 +143,7 @@ long pj_ctx_ftell(projCtx ctx, PAFile file);
void pj_ctx_fclose(projCtx ctx, PAFile file);
char *pj_ctx_fgets(projCtx ctx, char *line, int size, PAFile file);
-PAFile pj_open_lib(projCtx, char *, char *);
+PAFile pj_open_lib(projCtx, const char *, const char *);
#define PJ_LOG_NONE 0
#define PJ_LOG_ERROR 1