diff options
| author | jvoisin | 2021-07-22 17:46:01 +0200 |
|---|---|---|
| committer | jvoisin | 2021-07-22 17:46:01 +0200 |
| commit | a27aa204d6b1e556dc30b0426f96d2c9244e75f8 (patch) | |
| tree | 7e2b0723fe769fb1eb7bbfe45d7e1adbab00bf45 /src/sp_wrapper.c | |
| parent | 8353de00398b13f6c94eeab6e2401d2e590543c6 (diff) | |
Sprinkle some const
Diffstat (limited to 'src/sp_wrapper.c')
| -rw-r--r-- | src/sp_wrapper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_wrapper.c b/src/sp_wrapper.c index 277f23a..7610114 100644 --- a/src/sp_wrapper.c +++ b/src/sp_wrapper.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | #include "php_snuffleupagus.h" | 1 | #include "php_snuffleupagus.h" |
| 2 | 2 | ||
| 3 | static bool wrapper_is_whitelisted(const zend_string *zs) { | 3 | static bool wrapper_is_whitelisted(const zend_string *const zs) { |
| 4 | const sp_list_node *list = SNUFFLEUPAGUS_G(config).config_wrapper->whitelist; | 4 | const sp_list_node *list = SNUFFLEUPAGUS_G(config).config_wrapper->whitelist; |
| 5 | 5 | ||
| 6 | if (!zs) { | 6 | if (!zs) { |
| @@ -18,7 +18,7 @@ static bool wrapper_is_whitelisted(const zend_string *zs) { | |||
| 18 | 18 | ||
| 19 | void sp_disable_wrapper() { | 19 | void sp_disable_wrapper() { |
| 20 | HashTable *orig = php_stream_get_url_stream_wrappers_hash(); | 20 | HashTable *orig = php_stream_get_url_stream_wrappers_hash(); |
| 21 | HashTable *orig_complete = pemalloc(sizeof(*orig_complete), 1); | 21 | HashTable *orig_complete = pemalloc(sizeof(HashTable), 1); |
| 22 | zval *zv; | 22 | zval *zv; |
| 23 | zend_string *zs; | 23 | zend_string *zs; |
| 24 | 24 | ||
