From ca9d48e5538e0e0088a6d865091d3b9992d7378c Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 20 Jul 2008 17:40:19 +0000 Subject: 2008-07-20 Samuel Thibault * device/net_io.c (net_set_filter): Reference the proper member instead of casting pointers. * device/subrs.c (ether_sprintf): Set type of `i' to `int'. * i386/i386/trap.c (kernel_trap): Pass page fault address to printf. * i386/i386at/rtc.c (rtcget): Fix parenthesis to really test the bit. --- i386/i386at/rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'i386/i386at/rtc.c') diff --git a/i386/i386at/rtc.c b/i386/i386at/rtc.c index a66c5a8c..e0a03dee 100644 --- a/i386/i386at/rtc.c +++ b/i386/i386at/rtc.c @@ -75,7 +75,7 @@ unsigned char *regs; first_rtcopen_ever = 0; } outb(RTC_ADDR, RTC_D); - if (inb(RTC_DATA) & RTC_VRT == 0) return(-1); + if ((inb(RTC_DATA) & RTC_VRT) == 0) return(-1); outb(RTC_ADDR, RTC_A); while (inb(RTC_DATA) & RTC_UIP) /* busy wait */ outb(RTC_ADDR, RTC_A); -- cgit v1.2.3