summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1998-05-30 01:48:32 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1998-05-30 01:48:32 +0000
commit31c0eeb280cce2aeef6c9105cbe1d40feba136a1 (patch)
tree6220afc91c3c904a98771290ba43b97c1a8663f2 /sys
parentab0cf749ca2335eb3a16eead7e1daa71cbe2ae45 (diff)
use ctime(), kill that ugly time_print() hack
Diffstat (limited to 'sys')
-rw-r--r--sys/stand/boot/cmd.c6
1 files changed, 4 insertions, 2 deletions
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 {
}