diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-05-09 23:59:55 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-05-09 23:59:55 +0000 |
commit | 4e3c9b869e590791c4232c07ba74bc4865a2e65f (patch) | |
tree | 93b306b9b41509d3a9faa14acc2c70106787d96e /utils | |
parent | a12c94feb607de3358696c608cdca23d8164a50a (diff) |
(uptime): Cast arg to localtime appropriately.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/w.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -351,7 +351,8 @@ uptime (struct proc_stat_list *procs) fmt_named_interval (&uptime, 0, uptime_rep, sizeof (uptime_rep)); } - strftime (tod_rep, sizeof (tod_rep), "%r", localtime (&now.tv_sec)); + strftime (tod_rep, sizeof (tod_rep), "%r", + localtime ((time_t *)&now.tv_sec)); if (tod_rep[0] == '0') tod_rep[0] = ' '; /* Get rid of bletcherous leading 0. */ |