@@ -209,7 +209,7 @@ xml_encode_special_chars(PG_FUNCTION_ARGS)
209209
210210pfree (ts );
211211
212- ressize = strlen (tt );
212+ ressize = strlen (( char * ) tt );
213213tout = (text * )palloc (ressize + VARHDRSZ );
214214memcpy (VARDATA (tout ),tt ,ressize );
215215SET_VARSIZE (tout ,ressize + VARHDRSZ );
@@ -265,7 +265,7 @@ pgxmlNodeSetToText(xmlNodeSetPtr nodeset,
265265
266266/* If this isn't the last entry, write the plain sep. */
267267if (i < (nodeset -> nodeNr )- 1 )
268- xmlBufferWriteChar (buf ,plainsep );
268+ xmlBufferWriteChar (buf ,( char * ) plainsep );
269269}
270270else
271271{
@@ -604,12 +604,12 @@ pgxml_result_to_text(xmlXPathObjectPtr res,
604604
605605default :
606606elog (NOTICE ,"unsupported XQuery result: %d" ,res -> type );
607- xpresstr = xmlStrdup ("<unsupported/>" );
607+ xpresstr = xmlStrdup (( const xmlChar * ) "<unsupported/>" );
608608}
609609
610610
611611/* Now convert this result back to text */
612- ressize = strlen (xpresstr );
612+ ressize = strlen (( char * ) xpresstr );
613613xpres = (text * )palloc (ressize + VARHDRSZ );
614614memcpy (VARDATA (xpres ),xpresstr ,ressize );
615615SET_VARSIZE (xpres ,ressize + VARHDRSZ );
@@ -659,8 +659,8 @@ xpath_table(PG_FUNCTION_ARGS)
659659
660660char * * values ;
661661xmlChar * * xpaths ;
662- xmlChar * pos ;
663- xmlChar * pathsep = "|" ;
662+ char * pos ;
663+ const char * pathsep = "|" ;
664664
665665int numpaths ;
666666int ret ;
@@ -738,7 +738,7 @@ xpath_table(PG_FUNCTION_ARGS)
738738pos = xpathset ;
739739do
740740{
741- xpaths [numpaths ]= pos ;
741+ xpaths [numpaths ]= ( xmlChar * ) pos ;
742742pos = strstr (pos ,pathsep );
743743if (pos != NULL )
744744{
@@ -893,15 +893,15 @@ xpath_table(PG_FUNCTION_ARGS)
893893
894894default :
895895elog (NOTICE ,"unsupported XQuery result: %d" ,res -> type );
896- resstr = xmlStrdup ("<unsupported/>" );
896+ resstr = xmlStrdup (( const xmlChar * ) "<unsupported/>" );
897897}
898898
899899
900900/*
901901 * Insert this into the appropriate column in the
902902 * result tuple.
903903 */
904- values [j + 1 ]= resstr ;
904+ values [j + 1 ]= ( char * ) resstr ;
905905}
906906xmlXPathFreeContext (ctxt );
907907}