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/PackUpdater/Src/Utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/PackUpdater/Src') diff --git a/plugins/PackUpdater/Src/Utils.cpp b/plugins/PackUpdater/Src/Utils.cpp index ae5706dfaa..9554653ffd 100644 --- a/plugins/PackUpdater/Src/Utils.cpp +++ b/plugins/PackUpdater/Src/Utils.cpp @@ -374,15 +374,15 @@ void DoCheck(int iFlag) MessageBox(nullptr, Text, Title, MB_ICONINFORMATION); } else if (iFlag) { - hCheckThread = mir_forkthread(CheckUpdates, nullptr); - db_set_dw(NULL, MODNAME, "LastUpdate", time(nullptr)); + hCheckThread = mir_forkthread(CheckUpdates); + db_set_dw(NULL, MODNAME, "LastUpdate", time(0)); } } BOOL AllowUpdateOnStartup() { if (OnlyOnceADay) { - time_t now = time(nullptr); + time_t now = time(0); time_t was = db_get_dw(NULL, MODNAME, "LastUpdate", 0); if ((now - was) < 86400) -- cgit v1.2.3