summaryrefslogtreecommitdiff
path: root/sys/arch/zaurus/stand/zboot/devopen.c
diff options
context:
space:
mode:
authorUwe Stuehler <uwe@cvs.openbsd.org>2005-05-12 05:10:31 +0000
committerUwe Stuehler <uwe@cvs.openbsd.org>2005-05-12 05:10:31 +0000
commit50843c1d8d350cfe1eb0ee518d09db0ee81beeed (patch)
tree8359b61c3597293614e0885e37294fbd0e3b95b4 /sys/arch/zaurus/stand/zboot/devopen.c
parentcaf6105da4eb0486be4aa3847fade621ea80185c (diff)
Minimal terminal line discipline support to stop the boot timeout
after the first keystroke, as on other platforms.
Diffstat (limited to 'sys/arch/zaurus/stand/zboot/devopen.c')
-rw-r--r--sys/arch/zaurus/stand/zboot/devopen.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/zaurus/stand/zboot/devopen.c b/sys/arch/zaurus/stand/zboot/devopen.c
index 1acbb1a03cb..e5a81a880b1 100644
--- a/sys/arch/zaurus/stand/zboot/devopen.c
+++ b/sys/arch/zaurus/stand/zboot/devopen.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: devopen.c,v 1.3 2005/05/11 16:42:15 deraadt Exp $ */
+/* $OpenBSD: devopen.c,v 1.4 2005/05/12 05:10:30 uwe Exp $ */
/*
* Copyright (c) 1996-1999 Michael Shalayeff
@@ -31,6 +31,8 @@
#include <sys/disklabel.h>
#include <dev/cons.h>
+#include <stand/boot/cmd.h>
+
extern int debug;
/* XXX use slot for 'rd' for 'hd' pseudo-device */
@@ -177,7 +179,7 @@ devboot(dev_t bootdev, char *p)
return;
/* fall-back to the previous default device */
- strlcpy(p, "/dev/hda4", 16);
+ strlcpy(p, "/dev/hda4", sizeof cmd.bootdev);
}
int pch_pos = 0;
@@ -222,7 +224,7 @@ getchar(void)
if ((c < ' ' && c != '\n') || c == '\177')
return c;
-#if 0
+#ifndef _TEST
putchar(c);
#endif