git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed USER_STAT_RES.
[stg.git]
/
stglibs
/
srvconf.lib
/
parsers
/
chg_user.cpp
diff --git
a/stglibs/srvconf.lib/parsers/chg_user.cpp
b/stglibs/srvconf.lib/parsers/chg_user.cpp
index a7d3592556f197de0c0967ee97d5582ee4dddcb9..a656c287b0bb0154af2ef8ce1cc750c7172a3836 100644
(file)
--- a/
stglibs/srvconf.lib/parsers/chg_user.cpp
+++ b/
stglibs/srvconf.lib/parsers/chg_user.cpp
@@
-21,15
+21,13
@@
#include "chg_user.h"
#include "chg_user.h"
-#include <cstddef>
-
#include <strings.h>
using namespace STG;
#include <strings.h>
using namespace STG;
-CHG_USER::PARSER::PARSER()
- : callback(
NULL
),
- data(
NULL
),
+CHG_USER::PARSER::PARSER(
SIMPLE::CALLBACK f, void * d
)
+ : callback(
f
),
+ data(
d
),
depth(0)
{
}
depth(0)
{
}
@@
-63,9
+61,3
@@
if (attr && attr[0] && attr[1])
else
callback(false, "Invalid response.", data);
}
else
callback(false, "Invalid response.", data);
}
-//-----------------------------------------------------------------------------
-void CHG_USER::PARSER::SetCallback(CALLBACK f, void * d)
-{
-callback = f;
-data = d;
-}