summaryrefslogtreecommitdiff
path: root/fd.c
diff options
context:
space:
mode:
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 {