summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-04-05 18:56:10 +0000
committerache <ache@FreeBSD.org>1996-04-05 18:56:10 +0000
commit73f61b578d7ddf7c4182d67b3f2f279e97f296eb (patch)
tree1db8e64b4bd4acce2062bf0adc8fd0ebc102fd76 /sys
parenta17e006b7fcf7be144bd50e12e4df45e94a8ea70 (diff)
downloadFreeBSD-src-73f61b578d7ddf7c4182d67b3f2f279e97f296eb.zip
FreeBSD-src-73f61b578d7ddf7c4182d67b3f2f279e97f296eb.tar.gz
Fix adjkerntz expression priority
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/tsc.c6
-rw-r--r--sys/amd64/isa/clock.c6
-rw-r--r--sys/i386/i386/tsc.c6
-rw-r--r--sys/i386/isa/clock.c6
-rw-r--r--sys/isa/atrtc.c6
5 files changed, 15 insertions, 15 deletions
diff --git a/sys/amd64/amd64/tsc.c b/sys/amd64/amd64/tsc.c
index 97b0de7..75fbcee 100644
--- a/sys/amd64/amd64/tsc.c
+++ b/sys/amd64/amd64/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/amd64/isa/clock.c b/sys/amd64/isa/clock.c
index 97b0de7..75fbcee 100644
--- a/sys/amd64/isa/clock.c
+++ b/sys/amd64/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 */
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 */
diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c
index 97b0de7..75fbcee 100644
--- a/sys/isa/atrtc.c
+++ b/sys/isa/atrtc.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 */
OpenPOWER on IntegriCloud