diff options
author | Hartmut Holzgraefe <hholzgra@php.net> | 2010-10-14 21:33:10 +0000 |
---|---|---|
committer | Hartmut Holzgraefe <hholzgra@php.net> | 2010-10-14 21:33:10 +0000 |
commit | aaa2f1c30b3ba3da3e0030804054ee9c70e80bc7 (patch) | |
tree | 384852c9b955d1fea39e52a1a2fcf7cfd57e657f /Zend/zend_ini.c | |
parent | 738be1a0030ae67b19095391e0ee508284a5ab41 (diff) | |
download | php-git-aaa2f1c30b3ba3da3e0030804054ee9c70e80bc7.tar.gz |
marked char pointer arguments as const in lots of
places where strings pointed to are not modified
to prevent compiler warnings about discarded qualifiers ...
Diffstat (limited to 'Zend/zend_ini.c')
-rw-r--r-- | Zend/zend_ini.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Zend/zend_ini.c b/Zend/zend_ini.c index f30f01a5e1..f485ac5045 100644 --- a/Zend/zend_ini.c +++ b/Zend/zend_ini.c @@ -147,11 +147,11 @@ ZEND_API int zend_copy_ini_directives(TSRMLS_D) /* {{{ */ static int ini_key_compare(const void *a, const void *b TSRMLS_DC) /* {{{ */ { - Bucket *f; - Bucket *s; + const Bucket *f; + const Bucket *s; - f = *((Bucket **) a); - s = *((Bucket **) b); + f = *((const Bucket **) a); + s = *((const Bucket **) b); if (f->nKeyLength == 0 && s->nKeyLength == 0) { /* both numeric */ return ZEND_NORMALIZE_BOOL(f->nKeyLength - s->nKeyLength); |