]> granicus.if.org Git - libexpat/commitdiff
Address XML_Parse return type mis-match warning (issue #512)
authorSebastian Pipping <sebastian@pipping.org>
Sat, 12 Mar 2016 01:07:50 +0000 (02:07 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Sat, 12 Mar 2016 01:14:14 +0000 (02:14 +0100)
(Function XML_Parse returns enum XML_Status, not enum XML_Error.)

expat/lib/xmlparse.c

index 97ef730b3744e8b9eb7c64f02d9860db392e1993..3491811a25c7e063bafd245c81297c7081d057b7 100644 (file)
@@ -1550,7 +1550,7 @@ XML_Parse(XML_Parser parser, const char *s, int len, int isFinal)
   else if (bufferPtr == bufferEnd) {
     const char *end;
     int nLeftOver;
-    enum XML_Error result;
+    enum XML_Status result;
     parseEndByteIndex += len;
     positionPtr = s;
     ps_finalBuffer = (XML_Bool)isFinal;