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 --- ChangeLog | 6 ++++++ src/pj_open_lib.c | 2 +- src/proj_api.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3cce2b7c..ba5fc3f5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-06-26 Frank Warmerdam + + * src/pj_open_lib.c: change filename and access args to const. + 2013-06-25 Frank Warmerdam * nad/Makefile.am: add CH to pkgdata_DATA (#145). @@ -25,6 +29,8 @@ 2013-06-24 Frank Warmerdam + * src/projects.h, src/proj_api.h: move pj_open_lib() into proj_api.h. + * src/projects.h: Do not define PROJ_LIB to "PROJ_LIB". 2013-06-22 Frank Warmerdam 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