INN commit: trunk/innd (art.c)
INN Commit
rra at isc.org
Wed Jul 31 17:12:56 UTC 2013
Date: Wednesday, July 31, 2013 @ 10:12:56
Author: iulius
Revision: 9517
fix two casts to const time_t * when using ctime()
Modified:
trunk/innd/art.c
-------+
art.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Modified: art.c
===================================================================
--- art.c 2013-07-31 17:11:28 UTC (rev 9516)
+++ art.c 2013-07-31 17:12:56 UTC (rev 9517)
@@ -308,13 +308,13 @@
Done = code == ART_ACCEPT || code == ART_JUNK;
if (text)
i = fprintf(Log, "%.15s.%03d %c %s %s %s%s",
- ctime(&Now.tv_sec) + 4, (int)(Now.tv_usec / 1000), code,
+ ctime((const time_t *) &Now.tv_sec) + 4, (int)(Now.tv_usec / 1000), code,
data->Feedsite != NULL ? data->Feedsite : "(null)",
HDR_FOUND(HDR__MESSAGE_ID) ? HDR(HDR__MESSAGE_ID) : "(null)",
text, Done ? "" : "\n");
else
i = fprintf(Log, "%.15s.%03d %c %s %s%s",
- ctime(&Now.tv_sec) + 4, (int)(Now.tv_usec / 1000), code,
+ ctime((const time_t *) &Now.tv_sec) + 4, (int)(Now.tv_usec / 1000), code,
data->Feedsite != NULL ? data->Feedsite : "(null)",
HDR_FOUND(HDR__MESSAGE_ID) ? HDR(HDR__MESSAGE_ID) : "(null)",
Done ? "" : "\n");
More information about the inn-committers
mailing list