From 556f00e4af55e78836c45f47b0662ab44bbb8b48 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 20 May 2008 14:03:10 +0000 Subject: Made fixes pointed out by GCC 4.2 and -D_FORTIFY_SOURCES=2 --- server/src/templateparser.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server/src/templateparser.h') diff --git a/server/src/templateparser.h b/server/src/templateparser.h index 6e5fb1a..425030f 100644 --- a/server/src/templateparser.h +++ b/server/src/templateparser.h @@ -50,6 +50,7 @@ public: void characterData(std::string &data); void startTag(std::string name, std::map< std::string, std::string> attributes); void endTag(std::string name); + void parseError(char *buf, size_t len, std::string error, int lineno); Template *getTemplate(); @@ -59,6 +60,8 @@ protected: private: int fd; + std::string file; + // Parser state data ParserState state; Template *t; @@ -67,7 +70,7 @@ private: std::vector< Widget* > widgetstack; // Error callback function. - void error(char* fmt, ...); + void error(const char* fmt, ...); }; #endif/*__PRACRO_TEMPLATEPARSER_H__*/ -- cgit v1.2.3