summaryrefslogtreecommitdiffstats
path: root/sys/fs/portalfs
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-08-20 03:49:02 +0000
committerdg <dg@FreeBSD.org>1994-08-20 03:49:02 +0000
commitc97639b9230d9c3f9032d935d7892c5b513c8814 (patch)
treef43f29ef28a2342dd7be499cf286557b75ae9f56 /sys/fs/portalfs
parent255b8baf81cdff10b66cd0893b98779e34305ff1 (diff)
downloadFreeBSD-src-c97639b9230d9c3f9032d935d7892c5b513c8814.zip
FreeBSD-src-c97639b9230d9c3f9032d935d7892c5b513c8814.tar.gz
1) cleaned up after Garrett - fixed more redundant declarations, changed
use of timeout_t -> timeout_func_t in aha1542 and aha1742 drivers. 2) fix a bug in the portalfs that was uncovered by better prototyping - specifically, the time must be converted from timeval to timespec before storing in va_atime. 3) fixed/added some miscellaneous prototypes
Diffstat (limited to 'sys/fs/portalfs')
-rw-r--r--sys/fs/portalfs/portal_vnops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/fs/portalfs/portal_vnops.c b/sys/fs/portalfs/portal_vnops.c
index c19e815..b3c3694 100644
--- a/sys/fs/portalfs/portal_vnops.c
+++ b/sys/fs/portalfs/portal_vnops.c
@@ -35,7 +35,7 @@
*
* @(#)portal_vnops.c 8.8 (Berkeley) 1/21/94
*
- * $Id: portal_vnops.c,v 1.4 1992/05/30 10:05:24 jsp Exp jsp $
+ * $Id: portal_vnops.c,v 1.2 1994/05/25 09:08:21 rgrimes Exp $
*/
/*
@@ -431,7 +431,8 @@ portal_getattr(ap)
vap->va_fsid = vp->v_mount->mnt_stat.f_fsid.val[0];
vap->va_size = DEV_BSIZE;
vap->va_blocksize = DEV_BSIZE;
- microtime(&vap->va_atime);
+ microtime((struct timeval *)&vap->va_atime);
+ TIMEVAL_TO_TIMESPEC((struct timeval *)&vap->va_atime, (struct timespec *)&vap->va_atime);
vap->va_mtime = vap->va_atime;
vap->va_ctime = vap->va_ctime;
vap->va_gen = 0;
OpenPOWER on IntegriCloud