diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2007-08-09 09:46:36 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2007-08-09 09:46:36 +0000 |
commit | aa44aa13368eac43690c8a91d7b872e494c7c4e3 (patch) | |
tree | d9ad7b94b3ed7b41d2f11ad6421a5f1719c2e034 /src/ne_xml.c | |
parent | 04c298330cbb8c7cd93f08aaa5c5456fef4f7bf4 (diff) | |
download | neon-aa44aa13368eac43690c8a91d7b872e494c7c4e3.tar.gz |
Fix compiler warnings with expat 2.x API:
* macros/neon.m4 (NEON_FORMAT): Fix use of headers passed to
AC_CHECK_SIZEOF.
* macros/neon-xml-parser.m4 (NE_XML_EXPAT): Check how to print
the XML_Size type, if defined.
* src/ne_xml.c (ne_xml_parse): Use correct format string for
return value of XML_GetCurrentLineNumber.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1218 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_xml.c')
-rw-r--r-- | src/ne_xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ne_xml.c b/src/ne_xml.c index f6cdd56..7c95a2e 100644 --- a/src/ne_xml.c +++ b/src/ne_xml.c @@ -547,7 +547,7 @@ int ne_xml_parse(ne_xml_parser *p, const char *block, size_t len) NE_DEBUG(NE_DBG_XMLPARSE, "XML: XML_Parse returned %d\n", ret); if (ret == 0 && p->failure == 0) { ne_snprintf(p->error, ERR_SIZE, - "XML parse error at line %d: %s", + "XML parse error at line %" NE_FMT_XML_SIZE ": %s", XML_GetCurrentLineNumber(p->parser), XML_ErrorString(XML_GetErrorCode(p->parser))); p->failure = 1; |