diff --git a/client/src/testprogram/testprogram.cc b/client/src/testprogram/testprogram.cc index e8eab7a..6241095 100644 --- a/client/src/testprogram/testprogram.cc +++ b/client/src/testprogram/testprogram.cc @@ -131,7 +131,9 @@ cout << "------------------------------" << endl; auto start = time(nullptr); - host.waitForReady(5); + for(size_t ix = 0; ix < 100; ix++) { + host.waitForReady(5); + } cout << "Time: " << (time(nullptr) - start) << std::endl; cout << "------------------------------" << endl; diff --git a/server/src/core/windows/inout.c b/server/src/core/windows/inout.c index 1002bb3..8576ad1 100644 --- a/server/src/core/windows/inout.c +++ b/server/src/core/windows/inout.c @@ -46,7 +46,7 @@ unsigned char * ipc3270_pack_error(const GError *error, size_t * szPacket) { static const char * error_response = "error"; - debug("%s(%d,%s)",__FUNCTION__,(int) error_response,error->message); + debug("%s(%d,%s)",__FUNCTION__,(int) error->code, (const char *) error->message); *szPacket = strlen(error_response) + 1 + (sizeof(guint16) * 2) + strlen(error->message); -- libgit2 0.21.2