summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2003-10-20 15:42:10 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2003-10-20 15:42:10 +0000
commitfe871be5ca9fe9add2c38988f7fbc73c7b0294d1 (patch)
treed25cb1f9adf15c78a84abd4a09aaf28dde8c000d
parent25679a60c73497ed5cdb156477da73c573532a70 (diff)
downloadphp-git-fe871be5ca9fe9add2c38988f7fbc73c7b0294d1.tar.gz
MFH(r-1.108): Fix compiler warnings
-rw-r--r--ext/wddx/wddx.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c
index 18c9a3a568..b68b02dd8d 100644
--- a/ext/wddx/wddx.c
+++ b/ext/wddx/wddx.c
@@ -93,7 +93,7 @@ typedef struct {
} wddx_stack;
-static void php_wddx_process_data(void *user_data, const char *s, int len);
+static void php_wddx_process_data(void *user_data, const XML_Char *s, int len);
/* {{{ wddx_functions[]
*/
@@ -400,7 +400,7 @@ static void php_wddx_serialize_string(wddx_packet *packet, zval *var)
break;
default:
- if (iscntrl((int)*p)) {
+ if (iscntrl((int)*(unsigned char *)p)) {
FLUSH_BUF();
sprintf(control_buf, WDDX_CHAR, *p);
php_wddx_add_chunk(packet, control_buf);
@@ -696,7 +696,7 @@ static void php_wddx_add_var(wddx_packet *packet, zval *name_var)
/* {{{ php_wddx_push_element
*/
-static void php_wddx_push_element(void *user_data, const char *name, const char **atts)
+static void php_wddx_push_element(void *user_data, const XML_Char *name, const XML_Char **atts)
{
st_entry ent;
wddx_stack *stack = (wddx_stack *)user_data;
@@ -884,7 +884,7 @@ static void php_wddx_push_element(void *user_data, const char *name, const char
/* {{{ php_wddx_pop_element
*/
-static void php_wddx_pop_element(void *user_data, const char *name)
+static void php_wddx_pop_element(void *user_data, const XML_Char *name)
{
st_entry *ent1, *ent2;
wddx_stack *stack = (wddx_stack *)user_data;
@@ -1006,7 +1006,7 @@ static void php_wddx_pop_element(void *user_data, const char *name)
/* {{{ php_wddx_process_data
*/
-static void php_wddx_process_data(void *user_data, const char *s, int len)
+static void php_wddx_process_data(void *user_data, const XML_Char *s, int len)
{
st_entry *ent;
wddx_stack *stack = (wddx_stack *)user_data;