diff options
author | Alexey Zakhlestin <indeyets@php.net> | 2008-10-16 11:38:25 +0000 |
---|---|---|
committer | Alexey Zakhlestin <indeyets@php.net> | 2008-10-16 11:38:25 +0000 |
commit | 5058774e1fbd41e2ede3684066567e330a91327e (patch) | |
tree | 7f33673c6c315a5683a5efa68af5b0245d27d04d /ext/simplexml | |
parent | d7ddc19853c6e933ada9eac155e9c84b1b8ca605 (diff) | |
download | php-git-5058774e1fbd41e2ede3684066567e330a91327e.tar.gz |
propagated const, to avoid "discards qualifiers from pointer target type" errors
Diffstat (limited to 'ext/simplexml')
-rw-r--r-- | ext/simplexml/simplexml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index db52a79bb2..9273e7e512 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -67,7 +67,7 @@ static void php_sxe_iterator_rewind(zend_object_iterator *iter TSRMLS_DC); /* {{{ _node_as_zval() */ -static void _node_as_zval(php_sxe_object *sxe, xmlNodePtr node, zval *value, SXE_ITER itertype, char *name, xmlChar *nsprefix, int isprefix TSRMLS_DC) +static void _node_as_zval(php_sxe_object *sxe, xmlNodePtr node, zval *value, SXE_ITER itertype, char *name, const xmlChar *nsprefix, int isprefix TSRMLS_DC) { php_sxe_object *subnode; @@ -79,7 +79,7 @@ static void _node_as_zval(php_sxe_object *sxe, xmlNodePtr node, zval *value, SXE subnode->iter.name = xmlStrdup((xmlChar *)name); } if (nsprefix && *nsprefix) { - subnode->iter.nsprefix = xmlStrdup((xmlChar *)nsprefix); + subnode->iter.nsprefix = xmlStrdup(nsprefix); subnode->iter.isprefix = isprefix; } |