summaryrefslogtreecommitdiff
path: root/nfs/nfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'nfs/nfs.c')
-rw-r--r--nfs/nfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nfs/nfs.c b/nfs/nfs.c
index fe9d3fc0..617ca334 100644
--- a/nfs/nfs.c
+++ b/nfs/nfs.c
@@ -162,10 +162,10 @@ xdr_encode_sattr_times (int *p, struct timespec *atime, struct timespec *mtime)
*p++ = -1; /* uid */
*p++ = -1; /* gid */
*p++ = -1; /* size */
- *p++ = htonl (atime->ts_sec);
- *p++ = htonl (atime->ts_nsec * 1000);
- *p++ = htonl (mtime->ts_sec);
- *p++ = htonl (mtime->ts_nsec * 1000);
+ *p++ = htonl (atime->tv_sec);
+ *p++ = htonl (atime->tv_nsec * 1000);
+ *p++ = htonl (mtime->tv_sec);
+ *p++ = htonl (mtime->tv_nsec * 1000);
return p;
}