summaryrefslogtreecommitdiff
path: root/plugins/HistorySweeperLight/historysweeperlight.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-06-23 13:25:26 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-06-23 13:25:26 +0000
commit0fd468d8b619965db3264e71d5b493e572c33305 (patch)
treef44d1ef00aa15f2d1b39ff83a4887c63252b38ef /plugins/HistorySweeperLight/historysweeperlight.cpp
parenta3a666e6df4692260b56d28e80c840894428feca (diff)
HistorySweeperLight:
plusified git-svn-id: http://svn.miranda-ng.org/main/trunk@550 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistorySweeperLight/historysweeperlight.cpp')
-rw-r--r--plugins/HistorySweeperLight/historysweeperlight.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/plugins/HistorySweeperLight/historysweeperlight.cpp b/plugins/HistorySweeperLight/historysweeperlight.cpp
index 50cc7e1386..50e37ddc34 100644
--- a/plugins/HistorySweeperLight/historysweeperlight.cpp
+++ b/plugins/HistorySweeperLight/historysweeperlight.cpp
@@ -21,14 +21,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "historysweeperlight.h"
-#ifdef VC6BUILD
-#define _____TIMEPROC time
-#else
-#define _____TIMEPROC _time32
-#endif
-
-_CRTIMP __time32_t __cdecl _____TIMEPROC(_Out_opt_ __time32_t * _Time);
-
typedef struct
{
time_t time;
@@ -38,7 +30,7 @@ typedef struct
// build criteria
time_t BuildCriteria(int dwti)
{
- time_t tim = _____TIMEPROC(NULL);
+ time_t tim = time(NULL);
switch (dwti)
{
@@ -119,7 +111,7 @@ static void GetBookmarks(HANDLE hContact, BEventData** books, size_t* bookcnt )
size_t recSize = *(WORD*)dbv.pbVal;
size_t numb = (dbv.cpbVal - sizeof(WORD)) / recSize;
- BEventData* tbooks = mir_alloc(sizeof(BEventData)*numb);
+ BEventData* tbooks = (BEventData*)mir_alloc(sizeof(BEventData)*numb);
size_t tbookcnt = 0;
size_t i;
@@ -253,4 +245,4 @@ int OnWindowEvent(WPARAM wParam, LPARAM lParam)
}
return 0;
-}
+} \ No newline at end of file