use nanotime().
This commit is contained in:
parent
370f05b81d
commit
c7d2653a66
|
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue