diff options
author | Marin Ramesa <mpr@hi.t-com.hr> | 2013-12-05 22:03:28 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-12-09 00:03:25 +0900 |
commit | 7806985ccef3fc8074a44dfd3f79b2ce21429338 (patch) | |
tree | e57245ecb54d4019bd8a2c03c8ad3e9516d6f5d0 /i386/i386at | |
parent | e86050875d72dbe2f80d3475220f769d7928f30b (diff) |
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.
Diffstat (limited to 'i386/i386at')
-rw-r--r-- | i386/i386at/kd.c | 3 | ||||
-rw-r--r-- | i386/i386at/model_dep.c | 4 |
2 files changed, 3 insertions, 4 deletions
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 */ |