From a41e8964db998573319dc405283e4238d9f406b3 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Wed, 3 Feb 1999 21:06:42 +0000 Subject: 1999-02-01 Mark Kettenis * ops.c: Include . (netfs_attempt_utimes): Fix various typo's. --- nfs/ops.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'nfs/ops.c') diff --git a/nfs/ops.c b/nfs/ops.c index f01ae2f5..82e51fa7 100644 --- a/nfs/ops.c +++ b/nfs/ops.c @@ -23,6 +23,7 @@ #include #include #include +#include /* We have fresh stat information for NP; the fattr structure is at P. Update our entry. Return the address of the next int after @@ -283,7 +284,7 @@ netfs_attempt_utimes (struct iouser *cred, struct node *np, just yet. */ if (!atime || !mtime) { - maptime_read (maptime, &tv); + maptime_read (mapped_time, &tv); current.tv_sec = tv.tv_sec; current.tv_nsec = tv.tv_usec * 1000; } @@ -292,8 +293,8 @@ netfs_attempt_utimes (struct iouser *cred, struct node *np, cred, 0, &rpcbuf, np, -1); p = xdr_encode_fhandle (p, &np->nn->handle); p = xdr_encode_sattr_times (p, - atime ?: current, - mtime ?: current); + atime ?: ¤t, + mtime ?: ¤t); if (protocol_version == 3) *p++ = 0; /* guard check == 0 */ -- cgit v1.2.3