git-svn: trunk@2628
Tomasz Kojm authored on 2007/01/15 09:41:39... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Mon Jan 15 01:38:46 CET 2007 (tk) |
|
2 |
+--------------------------------- |
|
3 |
+ * freshclam/mirman.c: fix mirror access time printout on win32 (bb#221) |
|
4 |
+ Patch from NJH |
|
5 |
+ |
|
1 | 6 |
Mon Jan 15 01:16:40 CET 2007 (tk) |
2 | 7 |
--------------------------------- |
3 | 8 |
* libclamav/lockdb.c: improve lock files handling (bb#229), thanks to |
... | ... |
@@ -20,6 +20,10 @@ |
20 | 20 |
#include "clamav-config.h" |
21 | 21 |
#endif |
22 | 22 |
|
23 |
+#ifdef C_WINDOWS |
|
24 |
+#define _USE_32BIT_TIME_T /* FIXME: mirdat.atime assumes 32bit time_t */ |
|
25 |
+#endif |
|
26 |
+ |
|
23 | 27 |
#include <stdio.h> |
24 | 28 |
#include <string.h> |
25 | 29 |
#include <stdlib.h> |
... | ... |
@@ -174,7 +178,7 @@ void mirman_list(const struct mirdat *mdat) |
174 | 174 |
printf("IP: %u.%u.%u.%u\n", ip[0], ip[1], ip[2], ip[3]); |
175 | 175 |
printf("Successes: %u\n", mdat->mirtab[i].succ); |
176 | 176 |
printf("Failures: %u\n", mdat->mirtab[i].fail); |
177 |
- printf("Last access: %s", ctime((time_t *) &mdat->mirtab[i].atime)); |
|
177 |
+ printf("Last access: %s", ctime((const time_t *)&mdat->mirtab[i].atime)); |
|
178 | 178 |
printf("Ignore: %s\n", mdat->mirtab[i].ignore ? "Yes" : "No"); |
179 | 179 |
if(i != mdat->num - 1) |
180 | 180 |
printf("-------------------------------------\n"); |