From db8314acf59a18c1a26b0a6c86a5a28261ef7392 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 27 Jun 2000 14:51:40 +0000 Subject: Work around mismatched ctime_r functions. This will be fixed. 2000-06-27 Christopher James Lahey * message-list.c: Work around mismatched ctime_r functions. This will be fixed. svn path=/trunk/; revision=3753 --- mail/message-list.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mail/message-list.c') diff --git a/mail/message-list.c b/mail/message-list.c index 3a49e28fdd..8c349aa1a1 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -540,6 +540,8 @@ message_list_init_images (void) } } +typedef char *(*ctime_r_prototype) (const time_t *clock, ...); + static char * filter_date (const void *data) { @@ -549,7 +551,7 @@ filter_date (const void *data) if (date == 0) return g_strdup ("?"); - ctime_r (&date, buf); + ((ctime_r_prototype) ctime_r) (&date, buf, 26); p = strchr (buf, '\n'); if (p) *p = '\0'; -- cgit v1.2.3