summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-04 22:03:11 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-04 22:03:11 +0000
commit56109334322fe8f861193cd51d21e785ae013874 (patch)
treeef9529a4373a1ae4cbb1af0fd87fb1e76a623123
parentc01ec4e244a985cafaee0a5075d7e25379a0a3f6 (diff)
Formerly rdwr-internal.c.~3~
-rw-r--r--libdiskfs/rdwr-internal.c5
1 files changed, 3 insertions, 2 deletions
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 <string.h>
/* 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);