From c7d2653a660df717d987a8bfbe110d92198ee2e6 Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 12 Sep 2005 16:44:29 +0000 Subject: [PATCH] use nanotime(). --- sys/fs/smbfs/smbfs_smb.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sys/fs/smbfs/smbfs_smb.c b/sys/fs/smbfs/smbfs_smb.c index 9bef90ce4d44..3adf5d5d3725 100644 --- a/sys/fs/smbfs/smbfs_smb.c +++ b/sys/fs/smbfs/smbfs_smb.c @@ -1,4 +1,4 @@ -/* $NetBSD: smbfs_smb.c,v 1.26 2005/05/29 21:00:29 christos Exp $ */ +/* $NetBSD: smbfs_smb.c,v 1.27 2005/09/12 16:44:29 christos Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -71,7 +71,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: smbfs_smb.c,v 1.26 2005/05/29 21:00:29 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: smbfs_smb.c,v 1.27 2005/09/12 16:44:29 christos Exp $"); #include #include @@ -631,7 +631,6 @@ smbfs_smb_create(struct smbnode *dnp, const char *name, int nmlen, struct mbchain *mbp; struct mdchain *mdp; struct timespec ctime; - struct timeval tv; u_int8_t wc; u_int16_t fid; u_long tm; @@ -643,8 +642,7 @@ smbfs_smb_create(struct smbnode *dnp, const char *name, int nmlen, smb_rq_getrequest(rqp, &mbp); /* get current time */ - microtime(&tv); - TIMEVAL_TO_TIMESPEC(&tv, &ctime); + (void)nanotime(&ts); smb_time_local2server(&ctime, SSTOVC(ssp)->vc_sopt.sv_tz, &tm); smb_rq_wstart(rqp);