summaryrefslogtreecommitdiff
path: root/sys/stand/boot/cmd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-04-18 07:40:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-04-18 07:40:04 +0000
commit888b63e1743ef4b4277b88169301e0b5c1445e16 (patch)
tree5b9d1c51879f3e1f909c17e6ec7c2f6050ac92e1 /sys/stand/boot/cmd.c
parentc2ee71fae9cec63f4a94c921619dc28d1c5b5032 (diff)
i386 bootblocks that work for 2.3. A tale too long to tell
Diffstat (limited to 'sys/stand/boot/cmd.c')
-rw-r--r--sys/stand/boot/cmd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/stand/boot/cmd.c b/sys/stand/boot/cmd.c
index bb91488169c..df77cb88510 100644
--- a/sys/stand/boot/cmd.c
+++ b/sys/stand/boot/cmd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd.c,v 1.36 1998/02/24 22:16:03 weingart Exp $ */
+/* $OpenBSD: cmd.c,v 1.37 1998/04/18 07:40:03 deraadt Exp $ */
/*
* Copyright (c) 1997 Michael Shalayeff
@@ -63,7 +63,7 @@ static int Xmachine __P((void));
extern const struct cmd_table MACHINE_CMD[];
#endif
-static const struct cmd_table cmd_set[] = {
+const struct cmd_table cmd_set[] = {
{"addr", CMDT_VAR, Xaddr},
{"howto", CMDT_VAR, Xhowto},
#ifdef DEBUG
@@ -75,7 +75,7 @@ static const struct cmd_table cmd_set[] = {
{NULL,0}
};
-static const struct cmd_table cmd_table[] = {
+const struct cmd_table cmd_table[] = {
{"#", CMDT_CMD, Xnop}, /* XXX must be first */
{"boot", CMDT_CMD, Xboot},
{"echo", CMDT_CMD, Xecho},
@@ -101,7 +101,7 @@ static char *whatcmd
static int docmd __P((void));
static char *qualify __P((char *));
-static char cmd_buf[133];
+char cmd_buf[133];
int
getcmd()
@@ -525,14 +525,14 @@ ls(name, sb)
}
#undef lsrwx
+int doboot = 1;
+
static int
Xnop()
{
- static int doboot = 1;
-
if (doboot) {
doboot = 0;
- return(Xboot());
+ return (Xboot());
}
return 0;