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.
This commit is contained in:
parent
80f283f8ee
commit
2976c607a6
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user