From 2976c607a60e65c586cac97ceffc7d1743ba52b9 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Fri, 19 Jan 2001 08:27:49 +0000 Subject: [PATCH] As GCC complained: There is an ISO 9899:1990 (``ISO C'') function clock(3), so we have a symbol conflict here. Get rid of this by renaming our symbol. --- archive.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archive.c b/archive.c index cabbab8..a7f0e74 100644 --- a/archive.c +++ b/archive.c @@ -38,7 +38,7 @@ ArchiveMail(const struct Mail * MailStruct, const char * listname) int rc; struct tm * timeptr; char * date; - time_t clock; + time_t t; assert(MailStruct != NULL); assert(listname != NULL); @@ -46,8 +46,8 @@ ArchiveMail(const struct Mail * MailStruct, const char * listname) /* Initialize internals. */ ListConfig = getListConfig(listname); - clock = time(NULL); - timeptr = localtime(&clock); + t = time(NULL); + timeptr = localtime(&t); date = asctime(timeptr); rc = -1;