summaryrefslogtreecommitdiffstats
path: root/sys/fs/msdosfs/msdosfs_conv.c
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1996-09-19 18:21:32 +0000
committernate <nate@FreeBSD.org>1996-09-19 18:21:32 +0000
commit45c85d421d05f7b96a102826ea41b4f7dc31c017 (patch)
tree0cf0ba5fc468e2333547b81142b3e6682d895b1d /sys/fs/msdosfs/msdosfs_conv.c
parent43f6021163b3ac1fd5741353fb84010eb75b0cc0 (diff)
downloadFreeBSD-src-45c85d421d05f7b96a102826ea41b4f7dc31c017.zip
FreeBSD-src-45c85d421d05f7b96a102826ea41b4f7dc31c017.tar.gz
In sys/time.h, struct timespec is defined as:
/* * Structure defined by POSIX.4 to be like a timeval. */ struct timespec { time_t ts_sec; /* seconds */ long ts_nsec; /* and nanoseconds */ }; The correct names of the fields are tv_sec and tv_nsec. Reminded by: James Drobina <jdrobina@infinet.com>
Diffstat (limited to 'sys/fs/msdosfs/msdosfs_conv.c')
-rw-r--r--sys/fs/msdosfs/msdosfs_conv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/fs/msdosfs/msdosfs_conv.c b/sys/fs/msdosfs/msdosfs_conv.c
index 033c4ac3..18e92fb 100644
--- a/sys/fs/msdosfs/msdosfs_conv.c
+++ b/sys/fs/msdosfs/msdosfs_conv.c
@@ -1,4 +1,4 @@
-/* $Id: msdosfs_conv.c,v 1.8 1996/04/05 16:31:49 ache Exp $ */
+/* $Id: msdosfs_conv.c,v 1.9 1996/04/05 18:59:06 ache Exp $ */
/* $NetBSD: msdosfs_conv.c,v 1.6.2.1 1994/08/30 02:27:57 cgd Exp $ */
/*
@@ -77,7 +77,7 @@ unix2dostime(tsp, ddp, dtp)
* If the time from the last conversion is the same as now, then
* skip the computations and use the saved result.
*/
- t = tsp->ts_sec - (tz.tz_minuteswest * 60)
+ t = tsp->tv_sec - (tz.tz_minuteswest * 60)
- (wall_cmos_clock ? adjkerntz : 0);
/* - daylight savings time correction */
if (lasttime != t) {
@@ -175,10 +175,10 @@ dos2unixtime(dd, dt, tsp)
days += ((dd & DD_DAY_MASK) >> DD_DAY_SHIFT) - 1;
lastseconds = (days * 24 * 60 * 60) + SECONDSTO1980;
}
- tsp->ts_sec = seconds + lastseconds + (tz.tz_minuteswest * 60)
+ tsp->tv_sec = seconds + lastseconds + (tz.tz_minuteswest * 60)
+ adjkerntz;
/* + daylight savings time correction */
- tsp->ts_nsec = 0;
+ tsp->tv_nsec = 0;
}
/*
OpenPOWER on IntegriCloud