summaryrefslogtreecommitdiff
path: root/fd.c
diff options
context:
space:
mode:
authorrsc <rsc>2006-09-06 18:06:04 +0000
committerrsc <rsc>2006-09-06 18:06:04 +0000
commitd4c64e5d434d8b9ef4488dddbe8807aed9fd7e98 (patch)
treef692dd2db0eb474cc8282925acbc74ccb9abb8b1 /fd.c
parent48b824703b35e17965c738743c7394e1fc0017ec (diff)
downloadxv6-labs-d4c64e5d434d8b9ef4488dddbe8807aed9fd7e98.tar.gz
xv6-labs-d4c64e5d434d8b9ef4488dddbe8807aed9fd7e98.tar.bz2
xv6-labs-d4c64e5d434d8b9ef4488dddbe8807aed9fd7e98.zip
writeable => writable
Diffstat (limited to 'fd.c')
-rw-r--r--fd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fd.c b/fd.c
index 2b4db0e..7e7502f 100644
--- a/fd.c
+++ b/fd.c
@@ -58,7 +58,7 @@ fd_alloc(void)
int
fd_write(struct fd *fd, char *addr, int n)
{
- if(fd->writeable == 0)
+ if(fd->writable == 0)
return -1;
if(fd->type == FD_PIPE){
return pipe_write(fd->pipe, addr, n);
@@ -114,7 +114,7 @@ fd_close(struct fd *fd)
release(&fd_table_lock);
if(dummy.type == FD_PIPE){
- pipe_close(dummy.pipe, dummy.writeable);
+ pipe_close(dummy.pipe, dummy.writable);
} else if(dummy.type == FD_FILE){
idecref(dummy.ip);
} else {