git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Temporary added config dump.
[stg.git]
/
stglibs
/
srvconf.lib
/
parsers
/
auth_by.cpp
diff --git
a/stglibs/srvconf.lib/parsers/auth_by.cpp
b/stglibs/srvconf.lib/parsers/auth_by.cpp
index 34e490ca0f3b90736398c0694b89e657b8bf2c1e..61f590bfcc927d3deb62534ee5908161753b17bd 100644
(file)
--- a/
stglibs/srvconf.lib/parsers/auth_by.cpp
+++ b/
stglibs/srvconf.lib/parsers/auth_by.cpp
@@
-18,17
+18,15
@@
* Author : Maxim Mamontov <faust@stargazer.dp.ua>
*/
* Author : Maxim Mamontov <faust@stargazer.dp.ua>
*/
-#include "parser_auth_by.h"
-
-#include <cstddef>
+#include "auth_by.h"
#include <strings.h> // strcasecmp
using namespace STG;
#include <strings.h> // strcasecmp
using namespace STG;
-AUTH_BY::PARSER::PARSER()
- : callback(
NULL
),
- data(
NULL
),
+AUTH_BY::PARSER::PARSER(
CALLBACK f, void * d
)
+ : callback(
f
),
+ data(
d
),
depth(0),
parsingAnswer(false)
{
depth(0),
parsingAnswer(false)
{
@@
-79,9
+77,3
@@
if (depth == 0)
error.clear();
}
}
error.clear();
}
}
-//-----------------------------------------------------------------------------
-void AUTH_BY::PARSER::SetCallback(CALLBACK f, void * d)
-{
-callback = f;
-data = d;
-}