summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
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. */