From 56109334322fe8f861193cd51d21e785ae013874 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 4 Feb 1994 22:03:11 +0000 Subject: Formerly rdwr-internal.c.~3~ --- libdiskfs/rdwr-internal.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libdiskfs') diff --git a/libdiskfs/rdwr-internal.c b/libdiskfs/rdwr-internal.c index 76e378ce..892791c0 100644 --- a/libdiskfs/rdwr-internal.c +++ b/libdiskfs/rdwr-internal.c @@ -16,6 +16,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "priv.h" +#include /* Actually read or write a file. The file size must already permit the requested access. NP is the file to read/write. DATA is a buffer @@ -24,7 +25,7 @@ DIR is set for writing and clear for reading. The inode must be locked. */ error_t -_diskfs_rdwr_internal (struct inode *np, +_diskfs_rdwr_internal (struct node *np, char *data, int offset, int amt, @@ -34,7 +35,7 @@ _diskfs_rdwr_internal (struct inode *np, int winoff; int cc; memory_object_t memobj; - int err; + int err = 0; if (dir) assert (!diskfs_readonly); -- cgit v1.2.3