summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-05-09 23:59:55 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-05-09 23:59:55 +0000
commit4e3c9b869e590791c4232c07ba74bc4865a2e65f (patch)
tree93b306b9b41509d3a9faa14acc2c70106787d96e /utils
parenta12c94feb607de3358696c608cdca23d8164a50a (diff)
(uptime): Cast arg to localtime appropriately.
Diffstat (limited to 'utils')
-rw-r--r--utils/w.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/w.c b/utils/w.c
index e7b69cea..13b5457f 100644
--- a/utils/w.c
+++ b/utils/w.c
@@ -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. */