diff options
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/io-read.c | 4 | ||||
-rw-r--r-- | libdiskfs/io-stat.c | 10 | ||||
-rw-r--r-- | libdiskfs/io-write.c | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/libdiskfs/io-read.c b/libdiskfs/io-read.c index 4c2adf31..787c0eae 100644 --- a/libdiskfs/io-read.c +++ b/libdiskfs/io-read.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1994, 1995, 1996, 1997, 1999 Free Software Foundation + Copyright (C) 1994,95,96,97,99,2001 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -29,7 +29,7 @@ diskfs_S_io_read (struct protid *cred, { struct node *np; int err; - int off = offset; + off_t off = offset; char *buf; int ourbuf = 0; 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; diff --git a/libdiskfs/io-write.c b/libdiskfs/io-write.c index adbfc6d5..a3c4199e 100644 --- a/libdiskfs/io-write.c +++ b/libdiskfs/io-write.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc. + 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 @@ -29,7 +29,7 @@ diskfs_S_io_write (struct protid *cred, { struct node *np; error_t err; - int off = offset; + off_t off = offset; if (!cred) return EOPNOTSUPP; |