From 5684556c19c50d38ad3873686d893481ea7d5509 Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Wed, 5 Jun 2019 14:31:13 -0400 Subject: clean up -Wall --- file.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'file.c') 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; -- cgit v1.2.3