aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-27 22:51:40 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-27 22:51:40 +0800
commitdb8314acf59a18c1a26b0a6c86a5a28261ef7392 (patch)
tree65af97595371faa3f8becccc017b927e66800173 /mail
parentd3c6e3664db58cb7e101ddb9e0d194b59f982f83 (diff)
downloadgsoc2013-evolution-db8314acf59a18c1a26b0a6c86a5a28261ef7392.tar
gsoc2013-evolution-db8314acf59a18c1a26b0a6c86a5a28261ef7392.tar.gz
gsoc2013-evolution-db8314acf59a18c1a26b0a6c86a5a28261ef7392.tar.bz2
gsoc2013-evolution-db8314acf59a18c1a26b0a6c86a5a28261ef7392.tar.lz
gsoc2013-evolution-db8314acf59a18c1a26b0a6c86a5a28261ef7392.tar.xz
gsoc2013-evolution-db8314acf59a18c1a26b0a6c86a5a28261ef7392.tar.zst
gsoc2013-evolution-db8314acf59a18c1a26b0a6c86a5a28261ef7392.zip
Work around mismatched ctime_r functions. This will be fixed.
2000-06-27 Christopher James Lahey <clahey@helixcode.com> * message-list.c: Work around mismatched ctime_r functions. This will be fixed. svn path=/trunk/; revision=3753
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/message-list.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index cb80eeec14..75e59f4ca8 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2000-06-27 Christopher James Lahey <clahey@helixcode.com>
+
+ * message-list.c: Work around mismatched ctime_r functions. This
+ will be fixed.
+
2000-06-27 Peter Williams <peterw@curious-george.helixcode.com>
* mail-threads.c: Don't compile this if we don't have
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';