[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 34/66] i386/i386at/model_dep.c, kd.c: use boolean instead of an i
From: |
Marin Ramesa |
Subject: |
[PATCH 34/66] i386/i386at/model_dep.c, kd.c: use boolean instead of an int |
Date: |
Thu, 5 Dec 2013 22:03:28 +0100 |
* 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(-)
diff --git a/i386/i386at/kd.c b/i386/i386at/kd.c
index cdc032c..fc1604b 100644
--- a/i386/i386at/kd.c
+++ b/i386/i386at/kd.c
@@ -107,7 +107,7 @@ void kd_enqsc(); /* enqueues a scancode
*/
#endif
struct tty kd_tty;
-extern int rebootflag;
+extern boolean_t rebootflag;
static void charput(), charmvup(), charmvdown(), charclear(), charsetcursor();
static void kd_noopreset();
@@ -989,7 +989,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 1a3aee8..940f4de 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -131,7 +131,7 @@ void halt_cpu (void) __attribute__
((noreturn));
void inittodr(); /* forward */
-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;
@@ -234,7 +234,7 @@ void halt_all_cpus(reboot)
kdreboot();
}
else {
- rebootflag = 1;
+ rebootflag = TRUE;
#ifdef MACH_HYP
hyp_halt();
#endif /* MACH_HYP */
--
1.8.1.4
- Re: [PATCH 25/66] i386/i386/mp_desc.c: remove dead assignment, (continued)
- [PATCH 27/66] i386/i386/pit.c: remove unused variables, Marin Ramesa, 2013/12/05
- [PATCH 29/66] i386/i386/trap.c: remove unused variables, Marin Ramesa, 2013/12/05
- [PATCH 28/66] i386/i386/trap.c: remove unused variable, Marin Ramesa, 2013/12/05
- [PATCH 30/66] i386/i386/user_ldt.c: remove unused variable, Marin Ramesa, 2013/12/05
- [PATCH 31/66] i386/i386at/com.c: simplify code, Marin Ramesa, 2013/12/05
- [PATCH 32/66] i386/i386at/com.c: remove dead assignment, Marin Ramesa, 2013/12/05
- [PATCH 33/66] i386/i386at/immc.c, kd.c: use boolean instead of an int, Marin Ramesa, 2013/12/05
- [PATCH 34/66] i386/i386at/model_dep.c, kd.c: use boolean instead of an int,
Marin Ramesa <=
- [PATCH 40/66] i386/i386at/kd.h: remove ifdef, Marin Ramesa, 2013/12/05
- [PATCH 41/66] i386/i386at/kd.h: remove ifdef, Marin Ramesa, 2013/12/05
- [PATCH 43/66] i386/i386at/rtc.c: use boolean instead of an int, Marin Ramesa, 2013/12/05
- [PATCH 42/66] i386/i386at/lpr.c: remove uninitialized variable, Marin Ramesa, 2013/12/05
- [PATCH 44/66] i386/i386at/rtc.c: remove unused variable, Marin Ramesa, 2013/12/05
- [PATCH 45/66] i386/intel/pmap.c: use boolean instead of an int, Marin Ramesa, 2013/12/05
- [PATCH 47/66] ipc/ipc_init.c: qualify constant with const, Marin Ramesa, 2013/12/05