From 3d8a07c4d7807081d3e435f655dfe9d5b86f697a Mon Sep 17 00:00:00 2001 From: Brandon Creighton Date: Mon, 10 Sep 2001 04:28:53 +0000 Subject: Change askname to volatile; this prevents it from being trashed by the setjmp/longjmp hack in place for VAX_BTYP_4[689]. This solves the /boot problem which prevented automatic boots from happening when the timer ran down. --- sys/arch/vax/stand/boot/boot.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/arch/vax/stand') diff --git a/sys/arch/vax/stand/boot/boot.c b/sys/arch/vax/stand/boot/boot.c index 0a4f42f0195..1a379791eeb 100644 --- a/sys/arch/vax/stand/boot/boot.c +++ b/sys/arch/vax/stand/boot/boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.c,v 1.6 2001/08/25 13:46:36 hugh Exp $ */ +/* $OpenBSD: boot.c,v 1.7 2001/09/10 04:28:52 bjc Exp $ */ /* $NetBSD: boot.c,v 1.4 1999/10/23 14:42:22 ragge Exp $ */ /*- * Copyright (c) 1982, 1986 The Regents of the University of California. @@ -82,8 +82,9 @@ int sluttid, senast, skip; Xmain() { - int io, type, askname, filindex = 0; + int io, type, filindex = 0; int j, nu; + volatile int askname; /* make sure the rpb is out of the way so it does not get trampled; * this will be the case if booting from net -- cgit v1.2.3