From 70e438feeee60a85b793b69071dcb2ed9ea1e3ae Mon Sep 17 00:00:00 2001 From: Ren RenJuan Date: Sat, 1 Feb 2014 00:06:26 +0000 Subject: [PATCH] * --- AusRegCliever/include/AC_OTE.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/AusRegCliever/include/AC_OTE.h b/AusRegCliever/include/AC_OTE.h index 81afb44..d6dcbe0 100644 --- a/AusRegCliever/include/AC_OTE.h +++ b/AusRegCliever/include/AC_OTE.h @@ -24,8 +24,8 @@ typedef auto_ptr AC_SESSION; bool acTkInitialised = false, fatal = false, done = false, transferGainer, bindError; - char *thisName = "registrar.ote"; - string thisRegistry("Unknown"), thatAccount("Unknown"), thisAccount("Unknown"),shitName(thisName); + const char *thisName = "registrar.ote"; + string thisRegistry("Unknown"), thatAccount("Unknown"), thisAccount("Unknown"), shitName; int cmd=0,debug=1000; string op("newInstance"); @@ -66,7 +66,7 @@ typedef auto_ptr AC_SESSION; } shitName = parms[thisCase]["name"].asString(); - thisName = (char *)shitName.c_str(); + thisName = shitName.c_str(); return true; } @@ -74,8 +74,7 @@ typedef auto_ptr AC_SESSION; inline bool checkContOK() { if (!parms[thisCase].isMember("cont_id")) { - ACPRODINOTE::bindError = true; - + ACPRODINOTE::bindError = true; theseLogs->logN(1,"(%d) no 'cont_id' field",cmd); return false; @@ -87,8 +86,8 @@ typedef auto_ptr AC_SESSION; inline bool checkPWDOK(Json::Value thisPW) { - if (thisPW.isNull() || !thisPW.asString().compare("auth.error")) { - + if (!parms[thisCase].isMember("cont_id")) { + ACPRODINOTE::bindError = true; theseLogs->logN(1,"(%d) no 'cont_pw' field",cmd); return false;