summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2003-05-07 19:52:30 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2003-05-07 19:52:30 +0000
commitcced1b26ec9a04f6b0b656c4170e0e983b2ac2e0 (patch)
tree9d042830421b8d28c6ab5cf6a1ac156e21bff9ea
parentca0bbb7d4ef40e0e3b4fbabc31d9295359c22dc8 (diff)
downloadphp-git-cced1b26ec9a04f6b0b656c4170e0e983b2ac2e0.tar.gz
Fixed typos
-rw-r--r--ext/xml/compat.c4
-rw-r--r--ext/xml/expat_compat.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/xml/compat.c b/ext/xml/compat.c
index 090fa5bd9c..bfb224df44 100644
--- a/ext/xml/compat.c
+++ b/ext/xml/compat.c
@@ -211,7 +211,7 @@ XML_ParserCreateNS(const XML_Char *encoding, const XML_Char sep)
static void *(*_expat_cpt_malloc_fcn)(size_t sz);
-static char *_expat_cpt_intn_strdup(const chat *str)
+static char *_expat_cpt_intn_strdup(const char *str)
{
size_t len;
char *retval;
@@ -237,7 +237,7 @@ XML_ParserCreate_MM(const XML_Char *encoding, const XML_Memory_Handling_Suite *m
_expat_cpt_malloc_fcn = memsuite->malloc_fcn; /* FIXME: not reentrant ! */
- xmlMemSetup(memsuite->free_fcn, memsuite->malloc_fcn, memsuite->realloc_fcn, _expat_compat_intn_strdup); /* WHOCANFIXME: not reentrant ! */
+ xmlMemSetup(memsuite->free_fcn, memsuite->malloc_fcn, memsuite->realloc_fcn, _expat_cpt_intn_strdup); /* WHOCANFIXME: not reentrant ! */
parser = (XML_Parser) memsuite->malloc_fcn(sizeof(struct _XML_Parser));
parser->namespace = 0;
diff --git a/ext/xml/expat_compat.h b/ext/xml/expat_compat.h
index 9b38caa1dc..c4f5e97962 100644
--- a/ext/xml/expat_compat.h
+++ b/ext/xml/expat_compat.h
@@ -73,7 +73,7 @@ typedef struct _XML_Parser {
XML_Parser XML_ParserCreate(const XML_Char *);
XML_Parser XML_ParserCreateNS(const XML_Char *, const XML_Char);
-XML_ParserCreate_MM(const XML_Char *, const XML_Memory_Handling_Suite *, const XML_Char *);
+XML_Parser XML_ParserCreate_MM(const XML_Char *, const XML_Memory_Handling_Suite *, const XML_Char *);
void XML_SetUserData(XML_Parser, void *);
void *XML_GetUserData(XML_Parser);
void XML_SetElementHandler(XML_Parser, XML_StartElementHandler, XML_EndElementHandler);