From 1ec3c21b2b3f953cf9a2b3e36c959ee732eac11d Mon Sep 17 00:00:00 2001 From: drhaynes Date: Tue, 26 Jan 2016 14:36:51 +0000 Subject: Use const int for array size --- src/pj_gridlist.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/pj_gridlist.c b/src/pj_gridlist.c index bc005d32..a49c8d51 100644 --- a/src/pj_gridlist.c +++ b/src/pj_gridlist.c @@ -177,9 +177,9 @@ PJ_GRIDINFO **pj_gridlist_from_nadgrids( projCtx ctx, const char *nadgrids, for( s = nadgrids; *s != '\0'; ) { size_t end_char; - int required = 1; - int max_path_length = 1024; - char name[max_path_length]; + int required = 1; + const int max_path_length = 1024; + char name[max_path_length]; if( *s == '@' ) { -- cgit v1.2.3