diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-21 22:04:34 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-08-21 22:04:34 +0000 |
commit | 47a6f03a90bed19d5c10450395498908ed2ce17c (patch) | |
tree | 80a243157fd73db86e4a93e82e43f9c9c65105c1 /sys/arch/i386/stand/boot/cmd.c | |
parent | 19ff666f30f3d3d2ace91ec62537f58b28064292 (diff) |
boothowto is local to boot
Diffstat (limited to 'sys/arch/i386/stand/boot/cmd.c')
-rw-r--r-- | sys/arch/i386/stand/boot/cmd.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/arch/i386/stand/boot/cmd.c b/sys/arch/i386/stand/boot/cmd.c index fff1891640c..4c13de98db0 100644 --- a/sys/arch/i386/stand/boot/cmd.c +++ b/sys/arch/i386/stand/boot/cmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd.c,v 1.25 1997/08/21 21:40:24 mickey Exp $ */ +/* $OpenBSD: cmd.c,v 1.26 1997/08/21 22:04:32 mickey Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff @@ -490,17 +490,17 @@ static int Xhowto() { if (cmd.argc < 2) { - if (boothowto) { + if (cmd.boothowto) { putchar('-'); - if (boothowto & RB_ASKNAME) + if (cmd.boothowto & RB_ASKNAME) putchar('a'); - if (boothowto & RB_HALT) + if (cmd.boothowto & RB_HALT) putchar('b'); - if (boothowto & RB_CONFIG) + if (cmd.boothowto & RB_CONFIG) putchar('c'); - if (boothowto & RB_SINGLE) + if (cmd.boothowto & RB_SINGLE) putchar('s'); - if (boothowto & RB_KDB) + if (cmd.boothowto & RB_KDB) putchar('d'); } } else @@ -554,7 +554,7 @@ bootparse(i) int i; { register char *cp; - int howto = boothowto; + int howto = cmd.boothowto; for (; i < cmd.argc; i++) { cp = cmd.argv[i]; @@ -586,7 +586,7 @@ bootparse(i) return 1; } } - boothowto = howto; + cmd.boothowto = howto; return 0; } |