diff options
Diffstat (limited to 'relaxng.c')
-rw-r--r-- | relaxng.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -5369,7 +5369,8 @@ xmlRelaxNGParseNameClass(xmlRelaxNGParserCtxtPtr ctxt, xmlNodePtr node, } else { xmlRngPErr(ctxt, node, XML_RNGP_CHOICE_CONTENT, "expecting name, anyName, nsName or choice : got %s\n", - (node == NULL ? "nothing" : node->name), NULL); + (node == NULL ? (const xmlChar *) "nothing" : node->name), + NULL); return (NULL); } if (ret != def) { @@ -9459,7 +9460,8 @@ xmlRelaxNGValidateInterleave(xmlRelaxNGValidCtxtPtr ctxt, ctxt->states = NULL; if (found == 0) { if (cur == NULL) { - VALID_ERR2(XML_RELAXNG_ERR_INTEREXTRA, "noname"); + VALID_ERR2(XML_RELAXNG_ERR_INTEREXTRA, + (const xmlChar *) "noname"); } else { VALID_ERR2(XML_RELAXNG_ERR_INTEREXTRA, cur->name); } |