summaryrefslogtreecommitdiff
path: root/nfs
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-02-03 21:06:42 +0000
committerThomas Bushnell <thomas@gnu.org>1999-02-03 21:06:42 +0000
commita41e8964db998573319dc405283e4238d9f406b3 (patch)
tree7bb4941a47c0b1ddca6cfb0d5d63b943e09b6b02 /nfs
parent48fe1fad7bd90b7695806eb8ac431b09626fcaea (diff)
1999-02-01 Mark Kettenis <kettenis@phys.uva.nl>
* ops.c: Include <maptime.h>. (netfs_attempt_utimes): Fix various typo's.
Diffstat (limited to 'nfs')
-rw-r--r--nfs/ChangeLog5
-rw-r--r--nfs/ops.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/nfs/ChangeLog b/nfs/ChangeLog
index c213b5c6..5099c1bf 100644
--- a/nfs/ChangeLog
+++ b/nfs/ChangeLog
@@ -1,3 +1,8 @@
+1999-02-01 Mark Kettenis <kettenis@phys.uva.nl>
+
+ * ops.c: Include <maptime.h>.
+ (netfs_attempt_utimes): Fix various typo's.
+
Sun Jan 31 18:39:09 1999 Thomas Bushnell, BSG <tb@mit.edu>
* nfs.c (xdr_encode_sattr_times): Convert nanoseconds to
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 <stdio.h>
#include <dirent.h>
#include <unistd.h>
+#include <maptime.h>
/* 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 ?: &current,
+ mtime ?: &current);
if (protocol_version == 3)
*p++ = 0; /* guard check == 0 */