From 72565796f2ff9a94c3763e6b1a8011dfc6ae1eb4 Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 5 Apr 1996 18:59:06 +0000 Subject: Fix adjkerntz expression priority. Make filetimes the same as DOS times for UTC cmos clock. --- sys/msdosfs/msdosfs_conv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/msdosfs') diff --git a/sys/msdosfs/msdosfs_conv.c b/sys/msdosfs/msdosfs_conv.c index 9d24f6f..033c4ac3 100644 --- a/sys/msdosfs/msdosfs_conv.c +++ b/sys/msdosfs/msdosfs_conv.c @@ -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; } -- cgit v1.1