aboutsummaryrefslogtreecommitdiffstats
path: root/xmlregexp.c
diff options
context:
space:
mode:
authorRob Richards <rrichard@src.gnome.org>2005-10-07 02:33:00 +0000
committerRob Richards <rrichard@src.gnome.org>2005-10-07 02:33:00 +0000
commit54a8f67c0504bb1bc17a2e5f139f3128953915d1 (patch)
treeb120deb18cbefe15bf3b6a7bd84bceb78bb4db69 /xmlregexp.c
parentbedc9771e782f7def4771b19ce1bf489127af43c (diff)
downloadandroid_external_libxml2-54a8f67c0504bb1bc17a2e5f139f3128953915d1.tar.gz
android_external_libxml2-54a8f67c0504bb1bc17a2e5f139f3128953915d1.tar.bz2
android_external_libxml2-54a8f67c0504bb1bc17a2e5f139f3128953915d1.zip
remove warnings under Windows.
* schematron.c xmlregexp.c: remove warnings under Windows.
Diffstat (limited to 'xmlregexp.c')
-rw-r--r--xmlregexp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/xmlregexp.c b/xmlregexp.c
index befd9136..00f99f1c 100644
--- a/xmlregexp.c
+++ b/xmlregexp.c
@@ -6878,10 +6878,10 @@ xmlExpExpDeriveInt(xmlExpCtxtPtr ctxt, xmlExpNodePtr exp, xmlExpNodePtr sub) {
len = xmlExpGetStartInt(ctxt, sub, tab, ctxt->tabSize, 0);
while (len < 0) {
const xmlChar **temp;
- temp = (const xmlChar **) xmlRealloc(tab, ctxt->tabSize * 2 *
+ temp = (const xmlChar **) xmlRealloc((xmlChar **) tab, ctxt->tabSize * 2 *
sizeof(const xmlChar *));
if (temp == NULL) {
- xmlFree(tab);
+ xmlFree((xmlChar **) tab);
return(NULL);
}
tab = temp;
@@ -6892,14 +6892,14 @@ xmlExpExpDeriveInt(xmlExpCtxtPtr ctxt, xmlExpNodePtr exp, xmlExpNodePtr sub) {
tmp = xmlExpStringDeriveInt(ctxt, exp, tab[i]);
if ((tmp == NULL) || (tmp == forbiddenExp)) {
xmlExpFree(ctxt, ret);
- xmlFree(tab);
+ xmlFree((xmlChar **) tab);
return(tmp);
}
tmp2 = xmlExpStringDeriveInt(ctxt, sub, tab[i]);
if ((tmp2 == NULL) || (tmp2 == forbiddenExp)) {
xmlExpFree(ctxt, tmp);
xmlExpFree(ctxt, ret);
- xmlFree(tab);
+ xmlFree((xmlChar **) tab);
return(tmp);
}
tmp3 = xmlExpExpDeriveInt(ctxt, tmp, tmp2);
@@ -6908,7 +6908,7 @@ xmlExpExpDeriveInt(xmlExpCtxtPtr ctxt, xmlExpNodePtr exp, xmlExpNodePtr sub) {
if ((tmp3 == NULL) || (tmp3 == forbiddenExp)) {
xmlExpFree(ctxt, ret);
- xmlFree(tab);
+ xmlFree((xmlChar **) tab);
return(tmp3);
}
@@ -6917,12 +6917,12 @@ xmlExpExpDeriveInt(xmlExpCtxtPtr ctxt, xmlExpNodePtr exp, xmlExpNodePtr sub) {
else {
ret = xmlExpHashGetEntry(ctxt, XML_EXP_OR, ret, tmp3, NULL, 0, 0);
if (ret == NULL) {
- xmlFree(tab);
+ xmlFree((xmlChar **) tab);
return(NULL);
}
}
}
- xmlFree(tab);
+ xmlFree((xmlChar **) tab);
return(ret);
}