From 33a18615f0a937ef2f68570fd8ea4c1847411bf4 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 9 May 1996 15:05:26 +0000 Subject: (fmt_past_time): Cast arg to localtime appropriately. --- libshouldbeinlibc/timefmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libshouldbeinlibc') diff --git a/libshouldbeinlibc/timefmt.c b/libshouldbeinlibc/timefmt.c index 89440ca2..2aacca38 100644 --- a/libshouldbeinlibc/timefmt.c +++ b/libshouldbeinlibc/timefmt.c @@ -262,7 +262,7 @@ fmt_past_time (struct timeval *tv, struct timeval *now, if (diff < 0) diff = -diff; /* XXX */ - bcopy (localtime (&tv->tv_sec), &tm, sizeof tm); + bcopy (localtime ((time_t) &tv->tv_sec), &tm, sizeof tm); if (width <= 0 || width >= buf_len) width = buf_len - 1; -- cgit v1.2.3