diff options
Diffstat (limited to 'fd.c')
-rw-r--r-- | fd.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 { |