X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/afb00c045e0ea58e39c0d7a7921bedbf26d1860d..737dc92a4a7cbf290fb9dd599c3a021a5af69479:/projects/sgconf_xml/parser.cpp diff --git a/projects/sgconf_xml/parser.cpp b/projects/sgconf_xml/parser.cpp index 12a1c7a2..99b48a7b 100644 --- a/projects/sgconf_xml/parser.cpp +++ b/projects/sgconf_xml/parser.cpp @@ -3,14 +3,14 @@ #include #include -#include "common.h" -#include "netunit.h" +#include "stg/common.h" +#include "stg/netunit.h" #include "request.h" int parse_depth = 0; XML_Parser parser; //--------------------------------------------------------------------------- -int ParseAns(void * data, const char *el, const char **attr) +int ParseAns(void *, const char *el, const char **attr) { if (strcasecmp(el, "ServerInfo") == 0 || strcasecmp(el, "Tariffs") == 0 || strcasecmp(el, "Admins") == 0 || strcasecmp(el, "Users") == 0 || strcasecmp(el, "user") == 0) { @@ -127,7 +127,7 @@ if (parse_depth == 1) } } //----------------------------------------------------------------------------- -void EndElement(void *data, const char *el) +void EndElement(void *, const char *el) { parse_depth--; if (strcasecmp(el, "ServerInfo") == 0 || strcasecmp(el, "Tariffs") == 0 || strcasecmp(el, "Admins") == 0 || strcasecmp(el, "Users") == 0 || strcasecmp(el, "tariff") == 0 || strcasecmp(el, "user") == 0) @@ -136,7 +136,7 @@ if (strcasecmp(el, "ServerInfo") == 0 || strcasecmp(el, "Tariffs") == 0 || strca } } //--------------------------------------------------------------------------- -int ParseReply(void * data, list * ans) +int ParseReply(void *, list * ans) //int ParseReply(void * data, SLIST * ans) { //char answ[ENC_MSG_LEN + 1]; @@ -162,7 +162,7 @@ while (n != ans->end()) if (++n == ans->end()) done = 1; - n--; + --n; if (XML_Parse(parser, n->c_str(), len, done) == XML_STATUS_ERROR) {