Fix adjkerntz expression priority.

Make filetimes the same as DOS times for UTC cmos clock.
This commit is contained in:
Andrey A. Chernov 1996-04-05 18:59:06 +00:00
parent 2cb9219c5d
commit b0b321257d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15055
2 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
/* $Id: msdosfs_conv.c,v 1.7 1995/11/07 14:06:41 phk Exp $ */
/* $Id: msdosfs_conv.c,v 1.8 1996/04/05 16:31:49 ache Exp $ */
/* $NetBSD: msdosfs_conv.c,v 1.6.2.1 1994/08/30 02:27:57 cgd Exp $ */
/*
@ -78,7 +78,7 @@ unix2dostime(tsp, ddp, dtp)
* skip the computations and use the saved result.
*/
t = tsp->ts_sec - (tz.tz_minuteswest * 60)
- wall_cmos_clock ? adjkerntz : 0;
- (wall_cmos_clock ? adjkerntz : 0);
/* - daylight savings time correction */
if (lasttime != t) {
lasttime = t;
@ -176,7 +176,7 @@ dos2unixtime(dd, dt, tsp)
lastseconds = (days * 24 * 60 * 60) + SECONDSTO1980;
}
tsp->ts_sec = seconds + lastseconds + (tz.tz_minuteswest * 60)
+ wall_cmos_clock ? adjkerntz : 0;
+ adjkerntz;
/* + daylight savings time correction */
tsp->ts_nsec = 0;
}

View file

@ -1,4 +1,4 @@
/* $Id: msdosfs_conv.c,v 1.7 1995/11/07 14:06:41 phk Exp $ */
/* $Id: msdosfs_conv.c,v 1.8 1996/04/05 16:31:49 ache Exp $ */
/* $NetBSD: msdosfs_conv.c,v 1.6.2.1 1994/08/30 02:27:57 cgd Exp $ */
/*
@ -78,7 +78,7 @@ unix2dostime(tsp, ddp, dtp)
* skip the computations and use the saved result.
*/
t = tsp->ts_sec - (tz.tz_minuteswest * 60)
- wall_cmos_clock ? adjkerntz : 0;
- (wall_cmos_clock ? adjkerntz : 0);
/* - daylight savings time correction */
if (lasttime != t) {
lasttime = t;
@ -176,7 +176,7 @@ dos2unixtime(dd, dt, tsp)
lastseconds = (days * 24 * 60 * 60) + SECONDSTO1980;
}
tsp->ts_sec = seconds + lastseconds + (tz.tz_minuteswest * 60)
+ wall_cmos_clock ? adjkerntz : 0;
+ adjkerntz;
/* + daylight savings time correction */
tsp->ts_nsec = 0;
}