From 133131eeb8b7679c5760d7fa07eb7e3c8b63a184 Mon Sep 17 00:00:00 2001 From: vysheng Date: Tue, 18 Feb 2014 21:06:00 +0300 Subject: [PATCH] Update interface.c --- interface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface.c b/interface.c index 59af7b2..b387e1f 100644 --- a/interface.c +++ b/interface.c @@ -1338,7 +1338,7 @@ void print_encr_chat_name_full (peer_id_t id, peer_t *C) { static char *monthes[] = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"}; void print_date (long t) { - struct tm *tm = localtime (&t); + struct tm *tm = localtime ((void *)&t); if (time (0) - t < 12 * 60 * 60) { printf ("[%02d:%02d] ", tm->tm_hour, tm->tm_min); } else { @@ -1347,7 +1347,7 @@ void print_date (long t) { } void print_date_full (long t) { - struct tm *tm = localtime (&t); + struct tm *tm = localtime ((void *)&t); printf ("[%04d/%02d/%02d %02d:%02d:%02d]", tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); }