From 31c0eeb280cce2aeef6c9105cbe1d40feba136a1 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Sat, 30 May 1998 01:48:32 +0000 Subject: use ctime(), kill that ugly time_print() hack --- sys/stand/boot/cmd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/stand/boot/cmd.c b/sys/stand/boot/cmd.c index b2bc36cc022..832b000b0cb 100644 --- a/sys/stand/boot/cmd.c +++ b/sys/stand/boot/cmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd.c,v 1.38 1998/05/25 19:17:40 mickey Exp $ */ +/* $OpenBSD: cmd.c,v 1.39 1998/05/30 01:48:31 mickey Exp $ */ /* * Copyright (c) 1997,1998 Michael Shalayeff @@ -358,8 +358,10 @@ Xstty() static int Xtime() { + time_t tt = getsecs(); + if (cmd.argc == 1) - time_print(); + printf(ctime(&tt)); else { } -- cgit v1.2.3