git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ticket. The MaybeSet() function call for the 'change-policy' parameter
[stg.git]
/
projects
/
sgconf_xml
/
parser.cpp
diff --git
a/projects/sgconf_xml/parser.cpp
b/projects/sgconf_xml/parser.cpp
index df18975eb8108e3ca4e4bc11daed92857b2d8cac..f2d5993bb9bf2fa86eaf21178e8056c539248a9c 100644
(file)
--- a/
projects/sgconf_xml/parser.cpp
+++ b/
projects/sgconf_xml/parser.cpp
@@
-3,8
+3,8
@@
#include <expat.h>
#include <string.h>
#include <expat.h>
#include <string.h>
-#include "common.h"
-#include "netunit.h"
+#include "
stg/
common.h"
+#include "
stg/
netunit.h"
#include "request.h"
int parse_depth = 0;
#include "request.h"
int parse_depth = 0;
@@
-166,8
+166,7
@@
while (n != ans->end())
if (XML_Parse(parser, n->c_str(), len, done) == XML_STATUS_ERROR)
{
if (XML_Parse(parser, n->c_str(), len, done) == XML_STATUS_ERROR)
{
- char s[128];
- printf(s, "Parse error at line %d: %s",
+ printf("Parse error at line %d: %s",
XML_GetCurrentLineNumber(parser),
XML_ErrorString(XML_GetErrorCode(parser)));
return st_xml_parse_error;
XML_GetCurrentLineNumber(parser),
XML_ErrorString(XML_GetErrorCode(parser)));
return st_xml_parse_error;