Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/smbfs use nanotime().



details:   https://anonhg.NetBSD.org/src/rev/8ba4b245b254
branches:  trunk
changeset: 584293:8ba4b245b254
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Sep 12 16:44:29 2005 +0000

description:
use nanotime().

diffstat:

 sys/fs/smbfs/smbfs_smb.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 1f7a851fed74 -r 8ba4b245b254 sys/fs/smbfs/smbfs_smb.c
--- a/sys/fs/smbfs/smbfs_smb.c  Mon Sep 12 16:43:38 2005 +0000
+++ b/sys/fs/smbfs/smbfs_smb.c  Mon Sep 12 16:44:29 2005 +0000
@@ -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 @@
        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 @@
        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);



Home | Main Index | Thread Index | Old Index