git-svn: trunk@2955
Tomasz Kojm authored on 2007/03/21 00:10:20... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Tue Mar 20 14:17:35 CET 2007 (tk) |
|
2 |
+--------------------------------- |
|
3 |
+ * freshclam/mirman.c: fix --list-mirrors on Solaris/64, thanks to |
|
4 |
+ Andy Fiddaman |
|
5 |
+ |
|
1 | 6 |
Mon Mar 19 23:31:38 CET 2007 (tk) |
2 | 7 |
--------------------------------- |
3 | 8 |
* sigtool/sigtool.c: write info on daily.wdb |
... | ... |
@@ -180,6 +180,8 @@ void mirman_list(const struct mirdat *mdat) |
180 | 180 |
{ |
181 | 181 |
unsigned int i; |
182 | 182 |
unsigned char *ip; |
183 |
+ time_t tm; |
|
184 |
+ |
|
183 | 185 |
|
184 | 186 |
for(i = 0; i < mdat->num; i++) { |
185 | 187 |
printf("Mirror #%u\n", i + 1); |
... | ... |
@@ -187,7 +189,8 @@ void mirman_list(const struct mirdat *mdat) |
187 | 187 |
printf("IP: %u.%u.%u.%u\n", ip[0], ip[1], ip[2], ip[3]); |
188 | 188 |
printf("Successes: %u\n", mdat->mirtab[i].succ); |
189 | 189 |
printf("Failures: %u\n", mdat->mirtab[i].fail); |
190 |
- printf("Last access: %s", ctime((const time_t *)&mdat->mirtab[i].atime)); |
|
190 |
+ tm = mdat->mirtab[i].atime; |
|
191 |
+ printf("Last access: %s", ctime((const time_t *)&tm)); |
|
191 | 192 |
printf("Ignore: %s\n", mdat->mirtab[i].ignore ? "Yes" : "No"); |
192 | 193 |
if(i != mdat->num - 1) |
193 | 194 |
printf("-------------------------------------\n"); |