summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libshouldbeinlibc/timefmt.c2
1 files changed, 1 insertions, 1 deletions
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;