diff options
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | src/pj_open_lib.c | 2 | ||||
| -rw-r--r-- | src/proj_api.h | 2 |
3 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2013-06-26 Frank Warmerdam <warmerdam@pobox.com> + + * src/pj_open_lib.c: change filename and access args to const. + 2013-06-25 Frank Warmerdam <warmerdam@pobox.com> * nad/Makefile.am: add CH to pkgdata_DATA (#145). @@ -25,6 +29,8 @@ 2013-06-24 Frank Warmerdam <warmerdam@pobox.com> + * 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 <warmerdam@pobox.com> 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 |
