From 7806985ccef3fc8074a44dfd3f79b2ce21429338 Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Thu, 5 Dec 2013 22:03:28 +0100 Subject: i386/i386at/model_dep.c, kd.c: use boolean instead of an int * i386/i386at/kd.c (rebootflag): Use boolean instead of an int. Remove duplicate variable declaration. * i386/i386at/model_dep.c (rebootflag): Use boolean instead of an int. --- i386/i386at/kd.c | 3 +-- i386/i386at/model_dep.c | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'i386') diff --git a/i386/i386at/kd.c b/i386/i386at/kd.c index 24d999a..b8e9487 100644 --- a/i386/i386at/kd.c +++ b/i386/i386at/kd.c @@ -105,7 +105,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #endif struct tty kd_tty; -extern int rebootflag; +extern boolean_t rebootflag; static void charput(), charmvup(), charmvdown(), charclear(), charsetcursor(); static void kd_noopreset(); @@ -984,7 +984,6 @@ Scancode scancode; { static int magic_state = KS_NORMAL; /* like kd_state */ boolean_t up = FALSE; - extern int rebootflag; if (scancode == 0x46) /* scroll lock */ /* if (scancode == 0x52) ** insert key */ diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c index f0d49f4..30ef204 100644 --- a/i386/i386at/model_dep.c +++ b/i386/i386at/model_dep.c @@ -127,7 +127,7 @@ static vm_size_t avail_remaining; extern char version[]; -int rebootflag = 0; /* exported to kdintr */ +boolean_t rebootflag = FALSE; /* exported to kdintr */ /* XX interrupt stack pointer and highwater mark, for locore.S. */ vm_offset_t int_stack_top, int_stack_high; @@ -228,7 +228,7 @@ void halt_all_cpus(reboot) kdreboot(); } else { - rebootflag = 1; + rebootflag = TRUE; #ifdef MACH_HYP hyp_halt(); #endif /* MACH_HYP */ -- cgit v1.2.3