X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/a9efea59fac006ecedba1b63f0e19c479ee90bfe..49083e0e0d34cae603af6b7cdf60948747b738f0:/projects/sgconf/parser.cpp?ds=sidebyside diff --git a/projects/sgconf/parser.cpp b/projects/sgconf/parser.cpp index 82b7ca9e..9d340e83 100644 --- a/projects/sgconf/parser.cpp +++ b/projects/sgconf/parser.cpp @@ -86,7 +86,6 @@ parse_depth--; int ParseReply(void * data, list * ans) { int done = 0; -int len; parse_depth = 0; parser = XML_ParserCreate(NULL); @@ -103,7 +102,7 @@ XML_SetElementHandler(parser, StartElement, EndElement); list::iterator n = ans->begin(); while (n != ans->end()) { - len = strlen(n->c_str()); + size_t len = strlen(n->c_str()); if (++n == ans->end()) done = 1;