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/Twitter/src/chat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Twitter/src/chat.cpp') diff --git a/protocols/Twitter/src/chat.cpp b/protocols/Twitter/src/chat.cpp index a28c44f351..6ff50e7b28 100644 --- a/protocols/Twitter/src/chat.cpp +++ b/protocols/Twitter/src/chat.cpp @@ -92,7 +92,7 @@ void TwitterProto::AddChatContact(const char *name, const char *nick) ptrW wszNick(mir_a2u(nick ? nick : name)); GCEVENT gce = { m_szModuleName, m_tszUserName, GC_EVENT_JOIN }; - gce.time = DWORD(time(nullptr)); + gce.time = DWORD(time(0)); gce.ptszNick = wszNick; gce.ptszUID = wszId; gce.ptszStatus = L"Normal"; @@ -104,7 +104,7 @@ void TwitterProto::DeleteChatContact(const char *name) ptrW wszId(mir_a2u(name)); GCEVENT gce = { m_szModuleName, m_tszUserName, GC_EVENT_PART }; - gce.time = DWORD(time(nullptr)); + gce.time = DWORD(time(0)); gce.ptszNick = wszId; gce.ptszUID = gce.ptszNick; Chat_Event(&gce); -- cgit v1.2.3