summaryrefslogtreecommitdiff
path: root/sys/nfs
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2013-06-03 16:55:23 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2013-06-03 16:55:23 +0000
commit60d1cac5a8ccb212baadfb4a019297d5511c45fe (patch)
treeb0aaa73f11b292d04c1b56668f70b07f26a4ddbc /sys/nfs
parent6a7c51c766f42977082e7093a0f3c39681622300 (diff)
Convert some internal APIs to use timespecs instead of timevals
ok matthew@ deraadt@
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/nfs_serv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c
index 73de3b3590c..074aa3f0e6d 100644
--- a/sys/nfs/nfs_serv.c
+++ b/sys/nfs/nfs_serv.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_serv.c,v 1.92 2012/03/21 16:33:21 kettenis Exp $ */
+/* $OpenBSD: nfs_serv.c,v 1.93 2013/06/03 16:55:22 guenther Exp $ */
/* $NetBSD: nfs_serv.c,v 1.34 1997/05/12 23:37:12 fvdl Exp $ */
/*
@@ -826,7 +826,7 @@ nfsrv_write(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
* for debugging purposes.
*/
*tl++ = txdr_unsigned(boottime.tv_sec);
- *tl = txdr_unsigned(boottime.tv_usec);
+ *tl = txdr_unsigned(boottime.tv_nsec/1000);
} else {
fp = nfsm_build(&info.nmi_mb, NFSX_V2FATTR);
nfsm_srvfattr(nfsd, &va, fp);
@@ -2547,7 +2547,7 @@ nfsrv_commit(struct nfsrv_descript *nfsd, struct nfssvc_sock *slp,
if (!error) {
tl = nfsm_build(&info.nmi_mb, NFSX_V3WRITEVERF);
*tl++ = txdr_unsigned(boottime.tv_sec);
- *tl = txdr_unsigned(boottime.tv_usec);
+ *tl = txdr_unsigned(boottime.tv_nsec/1000);
} else
error = 0;
nfsmout: