summaryrefslogtreecommitdiff
path: root/ext/json/php_json_scanner.h
diff options
context:
space:
mode:
authortwosee <twose@qq.com>2020-06-07 17:01:19 +0800
committerNikita Popov <nikita.ppv@gmail.com>2020-06-08 10:38:45 +0200
commit88355dd338835f7a59415ecb2e7e970658f3867f (patch)
treef203c58d7656c341273565e2d6fb84d89837bad2 /ext/json/php_json_scanner.h
parentf6db43fec8da3d3c0c7def077e9f493ce6129c45 (diff)
downloadphp-git-88355dd338835f7a59415ecb2e7e970658f3867f.tar.gz
Constify char * arguments of APIs
Closes GH-5676.
Diffstat (limited to 'ext/json/php_json_scanner.h')
-rw-r--r--ext/json/php_json_scanner.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/php_json_scanner.h b/ext/json/php_json_scanner.h
index 7a2d841703..e5a4979591 100644
--- a/ext/json/php_json_scanner.h
+++ b/ext/json/php_json_scanner.h
@@ -40,7 +40,7 @@ typedef struct _php_json_scanner {
} php_json_scanner;
-void php_json_scanner_init(php_json_scanner *scanner, char *str, size_t str_len, int options);
+void php_json_scanner_init(php_json_scanner *scanner, const char *str, size_t str_len, int options);
int php_json_scan(php_json_scanner *s);
#endif /* PHP_JSON_SCANNER_H */