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 --- plugins/Ping/src/pingthread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Ping/src') diff --git a/plugins/Ping/src/pingthread.cpp b/plugins/Ping/src/pingthread.cpp index 080f044345..6bac84f199 100644 --- a/plugins/Ping/src/pingthread.cpp +++ b/plugins/Ping/src/pingthread.cpp @@ -147,7 +147,7 @@ void __cdecl sttCheckStatusThreadProc(void*) i->responding = pa.responding; i->round_trip_time = pa.round_trip_time; history_entry.first = i->round_trip_time; - history_entry.second = time(nullptr); + history_entry.second = time(0); history_map[i->item_id].push_back(history_entry); // maintain history (-1 represents no response) while (history_map[i->item_id].size() >= MAX_HISTORY) @@ -227,7 +227,7 @@ void start_ping_thread() { if (status_update_thread) CloseHandle(status_update_thread); - status_update_thread = mir_forkthread(sttCheckStatusThreadProc, nullptr); + status_update_thread = mir_forkthread(sttCheckStatusThreadProc); } void stop_ping_thread() -- cgit v1.2.3