diff options
author | Roland McGrath <roland@gnu.org> | 2001-04-12 19:43:43 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-04-12 19:43:43 +0000 |
commit | 87c5d79fd7f962293e5708b8335f8070f3e514ff (patch) | |
tree | 7e0b2ec611ef17ce4f9de1a374e233223bb052a8 /libdiskfs/io-stat.c | |
parent | baa50c267be2bed67eb47e848ae8431625bf3be2 (diff) |
2001-04-08 Neal H Walfield <neal@cs.uml.edu>
* io-write.c (diskfs_S_io_write): Make local variable OFF an
off_t and not an int.
* io-read.c (diskfs_S_io_read): Likewise.
* io-stat.c (diskfs_S_io_stat): Use memcpy, not bcopy.
Diffstat (limited to 'libdiskfs/io-stat.c')
-rw-r--r-- | libdiskfs/io-stat.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libdiskfs/io-stat.c b/libdiskfs/io-stat.c index e51f6d93..59f3187e 100644 --- a/libdiskfs/io-stat.c +++ b/libdiskfs/io-stat.c @@ -1,5 +1,5 @@ -/* - Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation +/* + Copyright (C) 1994,95,96,97,2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -28,7 +28,7 @@ diskfs_S_io_stat (struct protid *cred, if (!cred) return EOPNOTSUPP; - + np = cred->po->np; mutex_lock (&np->lock); @@ -38,13 +38,13 @@ diskfs_S_io_stat (struct protid *cred, else diskfs_set_node_times (np); - bcopy (&np->dn_stat, statbuf, sizeof (struct stat)); + memcpy (statbuf, &np->dn_stat, sizeof (struct stat)); statbuf->st_mode &= ~(S_IATRANS | S_IROOT); if (fshelp_translated (&np->transbox)) statbuf->st_mode |= S_IATRANS; if (cred->po->shadow_root == np || np == diskfs_root_node) statbuf->st_mode |= S_IROOT; - + mutex_unlock (&np->lock); return 0; |