From 3ad2582c4a4a6378f294f9256ecbcbdf0ae88e3a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 3 May 2018 16:02:14 +0200 Subject: mir_forkThread - stronger typizatioin for thread function parameter --- protocols/IcqOscarJ/src/icq_avatar.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/IcqOscarJ/src/icq_avatar.cpp') diff --git a/protocols/IcqOscarJ/src/icq_avatar.cpp b/protocols/IcqOscarJ/src/icq_avatar.cpp index c3d6b5792f..d05ed0d772 100644 --- a/protocols/IcqOscarJ/src/icq_avatar.cpp +++ b/protocols/IcqOscarJ/src/icq_avatar.cpp @@ -875,7 +875,7 @@ void avatars_server_connection::checkRequestQueue() void avatars_server_connection::connectionThread() { // This is the "infinite" loop that receives the packets from the ICQ avatar server - DWORD dwLastKeepAlive = time(nullptr) + KEEPALIVE_INTERVAL; + DWORD dwLastKeepAlive = time(0) + KEEPALIVE_INTERVAL; hPacketRecver = Netlib_CreatePacketReceiver(hConnection, 65536); @@ -893,14 +893,14 @@ void avatars_server_connection::connectionThread() if (Miranda_IsTerminated()) break; - if (time(nullptr) >= dwLastKeepAlive) { // limit frequency (HACK: on some systems select() does not work well) + if (time(0) >= dwLastKeepAlive) { // limit frequency (HACK: on some systems select() does not work well) if (!ppro->m_bGatewayMode && ppro->getByte("KeepAlive", DEFAULT_KEEPALIVE_ENABLED)) { // send keep-alive packet icq_packet packet; packet.wLen = 0; write_flap(&packet, ICQ_PING_CHAN); sendServerPacket(&packet); } - dwLastKeepAlive = time(nullptr) + KEEPALIVE_INTERVAL; + dwLastKeepAlive = time(0) + KEEPALIVE_INTERVAL; } // check if we got something to request -- cgit v1.2.3