diff options
author | ache <ache@FreeBSD.org> | 1996-04-05 18:56:10 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-04-05 18:56:10 +0000 |
commit | 73f61b578d7ddf7c4182d67b3f2f279e97f296eb (patch) | |
tree | 1db8e64b4bd4acce2062bf0adc8fd0ebc102fd76 /sys/i386 | |
parent | a17e006b7fcf7be144bd50e12e4df45e94a8ea70 (diff) | |
download | FreeBSD-src-73f61b578d7ddf7c4182d67b3f2f279e97f296eb.zip FreeBSD-src-73f61b578d7ddf7c4182d67b3f2f279e97f296eb.tar.gz |
Fix adjkerntz expression priority
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/i386/tsc.c | 6 | ||||
-rw-r--r-- | sys/i386/isa/clock.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/i386/i386/tsc.c b/sys/i386/i386/tsc.c index 97b0de7..75fbcee 100644 --- a/sys/i386/i386/tsc.c +++ b/sys/i386/i386/tsc.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.54 1996/03/31 04:05:36 bde Exp $ + * $Id: clock.c,v 1.55 1996/04/05 03:36:31 ache Exp $ */ /* @@ -493,7 +493,7 @@ inittodr(time_t base) /* sec now contains the number of seconds, since Jan 1 1970, in the local time zone */ - sec += tz.tz_minuteswest * 60 + wall_cmos_clock ? adjkerntz : 0; + sec += tz.tz_minuteswest * 60 + (wall_cmos_clock ? adjkerntz : 0); s = splclock(); time.tv_sec = sec; @@ -526,7 +526,7 @@ resettodr() /* Calculate local time to put in RTC */ - tm -= tz.tz_minuteswest * 60 + wall_cmos_clock ? adjkerntz : 0; + tm -= tz.tz_minuteswest * 60 + (wall_cmos_clock ? adjkerntz : 0); writertc(RTC_SEC, bin2bcd(tm%60)); tm /= 60; /* Write back Seconds */ writertc(RTC_MIN, bin2bcd(tm%60)); tm /= 60; /* Write back Minutes */ diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c index 97b0de7..75fbcee 100644 --- a/sys/i386/isa/clock.c +++ b/sys/i386/isa/clock.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.54 1996/03/31 04:05:36 bde Exp $ + * $Id: clock.c,v 1.55 1996/04/05 03:36:31 ache Exp $ */ /* @@ -493,7 +493,7 @@ inittodr(time_t base) /* sec now contains the number of seconds, since Jan 1 1970, in the local time zone */ - sec += tz.tz_minuteswest * 60 + wall_cmos_clock ? adjkerntz : 0; + sec += tz.tz_minuteswest * 60 + (wall_cmos_clock ? adjkerntz : 0); s = splclock(); time.tv_sec = sec; @@ -526,7 +526,7 @@ resettodr() /* Calculate local time to put in RTC */ - tm -= tz.tz_minuteswest * 60 + wall_cmos_clock ? adjkerntz : 0; + tm -= tz.tz_minuteswest * 60 + (wall_cmos_clock ? adjkerntz : 0); writertc(RTC_SEC, bin2bcd(tm%60)); tm /= 60; /* Write back Seconds */ writertc(RTC_MIN, bin2bcd(tm%60)); tm /= 60; /* Write back Minutes */ |