diff options
| author | Even Rouault <even.rouault@mines-paris.org> | 2017-12-18 13:42:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-18 13:42:38 +0100 |
| commit | 5bd4aef074ed3d9041e252be53fd2810ec40a02f (patch) | |
| tree | 945f42cf3d587a7ed29b6ac7fea7b62260516514 /src/pj_open_lib.c | |
| parent | e073e13b4d7c830d1e7144c22a1ab1c225f47a39 (diff) | |
| parent | a07501a165e6f2521c9aa13fa63fab33cf67d876 (diff) | |
| download | PROJ-5bd4aef074ed3d9041e252be53fd2810ec40a02f.tar.gz PROJ-5bd4aef074ed3d9041e252be53fd2810ec40a02f.zip | |
Merge pull request #674 from aaronpuchert/const-globals
Declare non-local variables as const where possible
Diffstat (limited to 'src/pj_open_lib.c')
| -rw-r--r-- | src/pj_open_lib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pj_open_lib.c b/src/pj_open_lib.c index 08532beb..4eaefba1 100644 --- a/src/pj_open_lib.c +++ b/src/pj_open_lib.c @@ -38,7 +38,7 @@ static const char *(*pj_finder)(const char *) = NULL; static int path_count = 0; static char **search_path = NULL; -static char * proj_lib_name = +static const char * proj_lib_name = #ifdef PROJ_LIB PROJ_LIB; #else @@ -93,8 +93,8 @@ void pj_set_searchpath ( int count, const char **path ) /* just a couple of helper functions that lets other functions access the otherwise private search path */ -const char **proj_get_searchpath(void) { - return (const char **)search_path; +const char * const *proj_get_searchpath(void) { + return (const char * const *)search_path; } int proj_get_path_count(void) { |
