diff options
| author | Frank Warmerdam <warmerdam@pobox.com> | 2013-06-26 21:44:00 +0000 |
|---|---|---|
| committer | Frank Warmerdam <warmerdam@pobox.com> | 2013-06-26 21:44:00 +0000 |
| commit | b888f6c5d58ec8f0d84b8cea7ad0e5d25020f02d (patch) | |
| tree | 60388405bffbe885a8402ec24fed26776b5f17c5 | |
| parent | cfe1eb9e32114ac3cf77ab16c3c9f7a441c0acea (diff) | |
| download | PROJ-b888f6c5d58ec8f0d84b8cea7ad0e5d25020f02d.tar.gz PROJ-b888f6c5d58ec8f0d84b8cea7ad0e5d25020f02d.zip | |
fix const correctness of pj_open_lib args
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2372 4e78687f-474d-0410-85f9-8d5e500ac6b2
| -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 |
