git-svn: trunk@3579
Török Edvin authored on 2008/02/04 04:40:55... | ... |
@@ -5780,22 +5780,11 @@ loadDatabase(void) |
5780 | 5780 |
if(d) { |
5781 | 5781 |
char *ptr; |
5782 | 5782 |
time_t t = d->stime; |
5783 |
-#ifdef HAVE_CTIME_R |
|
5784 | 5783 |
char buf[26]; |
5785 | 5784 |
|
5786 |
-#ifdef HAVE_CTIME_R_2 |
|
5787 | 5785 |
snprintf(clamav_version, VERSION_LENGTH, |
5788 | 5786 |
"ClamAV %s/%u/%s", VERSION, d->version, |
5789 |
- ctime_r(&t, buf)); |
|
5790 |
-#else |
|
5791 |
- snprintf(clamav_version, VERSION_LENGTH, |
|
5792 |
- "ClamAV %s/%d/%s", VERSION, d->version, |
|
5793 |
- ctime_r(&t, buf, sizeof(buf))); |
|
5794 |
-#endif |
|
5795 |
-#else |
|
5796 |
- snprintf(clamav_version, VERSION_LENGTH, |
|
5797 |
- "ClamAV %s/%d/%s", VERSION, d->version, ctime(&t)); |
|
5798 |
-#endif |
|
5787 |
+ cli_ctime(&t, buf, sizeof(buf))); |
|
5799 | 5788 |
|
5800 | 5789 |
/* Remove ctime's trailing \n */ |
5801 | 5790 |
if((ptr = strchr(clamav_version, '\n')) != NULL) |