diff options
author | Robert Morris <[email protected]> | 2019-06-05 14:31:13 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2019-06-05 14:31:13 -0400 |
commit | 5684556c19c50d38ad3873686d893481ea7d5509 (patch) | |
tree | bc309b61d99202013f6f6af175c9c0dd679e1465 /file.c | |
parent | 5eb1cb49722cce9afee48886a8db138d5f58d0ff (diff) | |
download | xv6-labs-5684556c19c50d38ad3873686d893481ea7d5509.tar.gz xv6-labs-5684556c19c50d38ad3873686d893481ea7d5509.tar.bz2 xv6-labs-5684556c19c50d38ad3873686d893481ea7d5509.zip |
clean up -Wall
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -106,9 +106,7 @@ filestat(struct file *f, uint64 addr) int fileread(struct file *f, uint64 addr, int n) { - struct proc *p = myproc(); int r = 0; - char *buf; if(f->readable == 0) return -1; @@ -133,9 +131,7 @@ fileread(struct file *f, uint64 addr, int n) int filewrite(struct file *f, uint64 addr, int n) { - struct proc *p = myproc(); int r, ret = 0; - char *buf; if(f->writable == 0) return -1; |