summaryrefslogtreecommitdiffstats
path: root/sys/nfs/nfs_common.h
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1996-09-19 18:21:32 +0000
committernate <nate@FreeBSD.org>1996-09-19 18:21:32 +0000
commit45c85d421d05f7b96a102826ea41b4f7dc31c017 (patch)
tree0cf0ba5fc468e2333547b81142b3e6682d895b1d /sys/nfs/nfs_common.h
parent43f6021163b3ac1fd5741353fb84010eb75b0cc0 (diff)
downloadFreeBSD-src-45c85d421d05f7b96a102826ea41b4f7dc31c017.zip
FreeBSD-src-45c85d421d05f7b96a102826ea41b4f7dc31c017.tar.gz
In sys/time.h, struct timespec is defined as:
/* * Structure defined by POSIX.4 to be like a timeval. */ struct timespec { time_t ts_sec; /* seconds */ long ts_nsec; /* and nanoseconds */ }; The correct names of the fields are tv_sec and tv_nsec. Reminded by: James Drobina <jdrobina@infinet.com>
Diffstat (limited to 'sys/nfs/nfs_common.h')
-rw-r--r--sys/nfs/nfs_common.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/nfs/nfs_common.h b/sys/nfs/nfs_common.h
index f935b7a..324df71 100644
--- a/sys/nfs/nfs_common.h
+++ b/sys/nfs/nfs_common.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfsm_subs.h 8.1 (Berkeley) 6/16/93
- * $Id: nfsm_subs.h,v 1.7 1995/06/27 11:06:55 dfr Exp $
+ * $Id: nfsm_subs.h,v 1.8 1995/08/24 10:45:16 dfr Exp $
*/
#ifndef _NFS_NFSM_SUBS_H_
@@ -426,8 +426,8 @@ struct mbuf *nfsm_rpchead __P((struct ucred *cr, int nmflag, int procid,
fxdr_nfsv3time(tl, &(a)->va_atime); \
break; \
case NFSV3SATTRTIME_TOSERVER: \
- (a)->va_atime.ts_sec = time.tv_sec; \
- (a)->va_atime.ts_nsec = time.tv_usec * 1000; \
+ (a)->va_atime.tv_sec = time.tv_sec; \
+ (a)->va_atime.tv_nsec = time.tv_usec * 1000; \
break; \
}; \
nfsm_dissect(tl, u_long *, NFSX_UNSIGNED); \
@@ -437,8 +437,8 @@ struct mbuf *nfsm_rpchead __P((struct ucred *cr, int nmflag, int procid,
fxdr_nfsv3time(tl, &(a)->va_mtime); \
break; \
case NFSV3SATTRTIME_TOSERVER: \
- (a)->va_mtime.ts_sec = time.tv_sec; \
- (a)->va_mtime.ts_nsec = time.tv_usec * 1000; \
+ (a)->va_mtime.tv_sec = time.tv_sec; \
+ (a)->va_mtime.tv_nsec = time.tv_usec * 1000; \
break; \
}; }
OpenPOWER on IntegriCloud