From 4e3c9b869e590791c4232c07ba74bc4865a2e65f Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 9 May 1996 23:59:55 +0000 Subject: (uptime): Cast arg to localtime appropriately. --- utils/w.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. */ -- cgit v1.2.3