From 2c40d8e15b53fda1434810b6704547cc2fd816a4 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Thu, 16 Apr 2020 20:20:09 -0700 Subject: [PATCH] minor cleanup --- QnetDB.cpp | 2 +- QnetLink.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/QnetDB.cpp b/QnetDB.cpp index 1dc795c..8cb49cd 100644 --- a/QnetDB.cpp +++ b/QnetDB.cpp @@ -202,7 +202,7 @@ bool CQnetDB::FindLS(const char mod, std::list &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; } diff --git a/QnetLink.cpp b/QnetLink.cpp index aedc61b..78fb0a0 100644 --- a/QnetLink.cpp +++ b/QnetLink.cpp @@ -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);