summaryrefslogtreecommitdiff
path: root/i386/i386at
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-12-05 22:03:37 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-09 00:11:29 +0900
commitf13cdc6b8d46628f4f7f6e8a3bb1f719a2b9c771 (patch)
tree2603c366fca4873509cbde75ea8f12101c6cc27b /i386/i386at
parentd3ac0b0895c94577d4a12861dfb530db92bcf5c7 (diff)
i386/i386at/rtc.c: use boolean instead of an int
* i386/i386at/rtc.c (first_rtcopen_ever): Use boolean instead of an int.
Diffstat (limited to 'i386/i386at')
-rw-r--r--i386/i386at/rtc.c6
1 files 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);