[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 43/66] i386/i386at/rtc.c: use boolean instead of an int
From: |
Marin Ramesa |
Subject: |
[PATCH 43/66] i386/i386at/rtc.c: use boolean instead of an int |
Date: |
Thu, 5 Dec 2013 22:03:37 +0100 |
* i386/i386at/rtc.c (first_rtcopen_ever): Use boolean instead of an int.
---
i386/i386at/rtc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/i386/i386at/rtc.c b/i386/i386at/rtc.c
index 3112830..2115f23 100644
--- a/i386/i386at/rtc.c
+++ b/i386/i386at/rtc.c
@@ -53,7 +53,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <i386/pio.h>
#include <i386at/rtc.h>
-static int first_rtcopen_ever = 1;
+static boolean_t first_rtcopen_ever = TRUE;
void
rtcinit()
@@ -71,7 +71,7 @@ unsigned char *regs;
{
if (first_rtcopen_ever) {
rtcinit();
- first_rtcopen_ever = 0;
+ first_rtcopen_ever = FALSE;
}
outb(RTC_ADDR, RTC_D);
if ((inb(RTC_DATA) & RTC_VRT) == 0) return(-1);
@@ -90,7 +90,7 @@ unsigned char *regs;
if (first_rtcopen_ever) {
rtcinit();
- first_rtcopen_ever = 0;
+ first_rtcopen_ever = FALSE;
}
outb(RTC_ADDR, RTC_B);
x = inb(RTC_DATA);
--
1.8.1.4
- [PATCH 31/66] i386/i386at/com.c: simplify code, (continued)
- [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, 2013/12/05
- [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 <=
- [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
- [PATCH 46/66] i386/intel/pmap.c: remove unused variable, Marin Ramesa, 2013/12/05
- [PATCH 48/66] ipc/mach_port.c: use boolean instead of an int, Marin Ramesa, 2013/12/05
- [PATCH 49/66] ipc/port.h: update comment, Marin Ramesa, 2013/12/05
- [PATCH 50/66] kern/act.c, act.h: comment unused variable, Marin Ramesa, 2013/12/05