From f13cdc6b8d46628f4f7f6e8a3bb1f719a2b9c771 Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Thu, 5 Dec 2013 22:03:37 +0100 Subject: i386/i386at/rtc.c: use boolean instead of an int * 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(-) (limited to 'i386/i386at/rtc.c') diff --git a/i386/i386at/rtc.c b/i386/i386at/rtc.c index 31128300..2115f23b 100644 --- a/i386/i386at/rtc.c +++ b/i386/i386at/rtc.c @@ -53,7 +53,7 @@ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include #include -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); -- cgit v1.2.3