summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2019-06-05 14:31:13 -0400
committerRobert Morris <[email protected]>2019-06-05 14:31:13 -0400
commit5684556c19c50d38ad3873686d893481ea7d5509 (patch)
treebc309b61d99202013f6f6af175c9c0dd679e1465 /file.c
parent5eb1cb49722cce9afee48886a8db138d5f58d0ff (diff)
downloadxv6-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.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/file.c b/file.c
index 2a903b0..6f27f22 100644
--- a/file.c
+++ b/file.c
@@ -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;