aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>2001-10-28 20:26:54 +0000
committerMatthew Dillon <dillon@FreeBSD.org>2001-10-28 20:26:54 +0000
commit46ca39e2bad40ae4b4742dc6b6479d9b91059eb2 (patch)
treea53f5a76179480ddde0f889ff6ebd3e8be9dc2ff /usr.bin
parent91d37f1692fd242cfe058aede398ddff112e06e7 (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rwho/rwho.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/rwho/rwho.c b/usr.bin/rwho/rwho.c
index b2c23632d7e5..ea9b668f64c0 100644
--- a/usr.bin/rwho/rwho.c
+++ b/usr.bin/rwho/rwho.c
@@ -162,10 +162,11 @@ main(argc, argv)
mp = myutmp;
for (i = 0; i < nusers; i++) {
char buf[BUFSIZ], cbuf[80];
+ time_t t = int_to_time(mp->myutmp.out_time);
strftime(cbuf, sizeof(cbuf),
d_first ? "%e %b %R" : "%b %e %R",
- localtime((time_t *)&mp->myutmp.out_time));
+ localtime(&t));
(void)sprintf(buf, "%s:%-.*s", mp->myhost,
sizeof(mp->myutmp.out_line), mp->myutmp.out_line);
printf("%-*.*s %-*s %s",