From b888f6c5d58ec8f0d84b8cea7ad0e5d25020f02d Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Wed, 26 Jun 2013 21:44:00 +0000 Subject: fix const correctness of pj_open_lib args git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2372 4e78687f-474d-0410-85f9-8d5e500ac6b2 --- src/pj_open_lib.c | 2 +- src/proj_api.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3