diff --git a/QnetDB.cpp b/QnetDB.cpp index f55607d..02731a3 100644 --- a/QnetDB.cpp +++ b/QnetDB.cpp @@ -90,7 +90,7 @@ bool CQnetDB::Init() return false; } -static int countcallback(void *count, int /*argc*/, char **argv, char **/*azColName*/) +static int countcallback(void *count, int /*argc*/, char **argv, char ** /*azColName*/) { auto c = (int *)count; *c = atoi(argv[0]); @@ -265,7 +265,7 @@ bool CQnetDB::UpdateGW(CHostQueue &hqueue) return true; } - while (! hqueue.Empty()) + while (!hqueue.Empty()) { auto h = hqueue.Pop(); UpdateGW(h.name.c_str(), h.addr.c_str(), h.port); diff --git a/QnetITAP.cpp b/QnetITAP.cpp index 1b560df..e601228 100644 --- a/QnetITAP.cpp +++ b/QnetITAP.cpp @@ -45,7 +45,7 @@ #include "QnetConfigure.h" #include "Timer.h" -#define ITAP_VERSION "QnetITAP-526" +#define ITAP_VERSION "QnetITAP-825" CQnetITAP::CQnetITAP(int mod) : assigned_module(mod) @@ -435,7 +435,7 @@ int CQnetITAP::SendTo(const unsigned char *buf) { if (EAGAIN != errno) { - printf("Error %d writing to dvap, message=%s\n", errno, strerror(errno)); + printf("Error %d writing to %s: %s\n", errno, ITAP_DEVICE.c_str(), strerror(errno)); return -1; } } @@ -451,7 +451,7 @@ int CQnetITAP::SendTo(const unsigned char *buf) { if (EAGAIN != errno) { - printf("Error %d writing to dvap, message=%s\n", errno, strerror(errno)); + printf("Error %d writing to %s: %s\n", errno, ITAP_DEVICE.c_str(), strerror(errno)); return -1; } }