minor cleanup

pull/14/head
Tom Early 6 years ago
parent e3c7dca999
commit 2c40d8e15b

@ -202,7 +202,7 @@ bool CQnetDB::FindLS(const char mod, std::list<CLink> &linklist)
sqlite3_stmt *stmt;
int rval = sqlite3_prepare_v2(db, sql.c_str(), -1, &stmt, 0);
if (SQLITE_OK != rval) {
fprintf(stderr, "CQnetDB::FindLS error: %d\n", rval);
fprintf(stderr, "CQnetDB::FindLS prepare_v2 error\n");
return true;
}

@ -296,7 +296,7 @@ void CQnetLink::LoadGateways(const std::string &filename)
int dplus = 0;
// DPlus Authenticate
if (dplus_authorize && !dplus_priority) {
CDPlusAuthenticator auth(login_call, std::string(website.c_str()));
CDPlusAuthenticator auth(login_call, website);
dplus = auth.Process(qnDB, dplus_reflectors, dplus_repeaters);
if (0 == dplus)
fprintf(stdout, "DPlus Authorization failed.\n");
@ -331,7 +331,7 @@ void CQnetLink::LoadGateways(const std::string &filename)
// DPlus Authenticate
if (dplus_authorize && dplus_priority) {
CDPlusAuthenticator auth(login_call, std::string(website.c_str()));
CDPlusAuthenticator auth(login_call, website);
dplus = auth.Process(qnDB, dplus_reflectors, dplus_repeaters);
if (0 == dplus) {
printf("#Gateways: %s=%d\n", filename.c_str(), count);

Loading…
Cancel
Save

Powered by TurnKey Linux.