pfree(ts);
- ressize = strlen(tt);
+ ressize = strlen((char *) tt);
tout = (text *) palloc(ressize + VARHDRSZ);
memcpy(VARDATA(tout), tt, ressize);
SET_VARSIZE(tout, ressize + VARHDRSZ);
/* If this isn't the last entry, write the plain sep. */
if (i < (nodeset->nodeNr) - 1)
- xmlBufferWriteChar(buf, plainsep);
+ xmlBufferWriteChar(buf, (char *) plainsep);
}
else
{
default:
elog(NOTICE, "unsupported XQuery result: %d", res->type);
- xpresstr = xmlStrdup("<unsupported/>");
+ xpresstr = xmlStrdup((const xmlChar *) "<unsupported/>");
}
/* Now convert this result back to text */
- ressize = strlen(xpresstr);
+ ressize = strlen((char *) xpresstr);
xpres = (text *) palloc(ressize + VARHDRSZ);
memcpy(VARDATA(xpres), xpresstr, ressize);
SET_VARSIZE(xpres, ressize + VARHDRSZ);
char **values;
xmlChar **xpaths;
- xmlChar *pos;
- xmlChar *pathsep = "|";
+ char *pos;
+ const char *pathsep = "|";
int numpaths;
int ret;
pos = xpathset;
do
{
- xpaths[numpaths] = pos;
+ xpaths[numpaths] = (xmlChar *) pos;
pos = strstr(pos, pathsep);
if (pos != NULL)
{
default:
elog(NOTICE, "unsupported XQuery result: %d", res->type);
- resstr = xmlStrdup("<unsupported/>");
+ resstr = xmlStrdup((const xmlChar *) "<unsupported/>");
}
* Insert this into the appropriate column in the
* result tuple.
*/
- values[j + 1] = resstr;
+ values[j + 1] = (char *) resstr;
}
xmlXPathFreeContext(ctxt);
}