diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-05-09 15:05:26 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-05-09 15:05:26 +0000 |
commit | 33a18615f0a937ef2f68570fd8ea4c1847411bf4 (patch) | |
tree | d668abf0d1f002d9696dcc285f4c337aa81585db /libshouldbeinlibc | |
parent | 2355899ee19b49156e8b829b1968551616dc9aae (diff) |
(fmt_past_time): Cast arg to localtime appropriately.
Diffstat (limited to 'libshouldbeinlibc')
-rw-r--r-- | libshouldbeinlibc/timefmt.c | 2 |
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; |