summaryrefslogtreecommitdiff
path: root/sysfile.c
diff options
context:
space:
mode:
authorrsc <rsc>2007-08-10 17:17:42 +0000
committerrsc <rsc>2007-08-10 17:17:42 +0000
commitdca5b5ca2e3687f27ebf589fe3855966932840d8 (patch)
tree79be03b3d6f950eb8ceb105449674aaa614bd17e /sysfile.c
parent6861140a667cd7219cf9bc1e051faadfc8c46c6f (diff)
downloadxv6-labs-dca5b5ca2e3687f27ebf589fe3855966932840d8.tar.gz
xv6-labs-dca5b5ca2e3687f27ebf589fe3855966932840d8.tar.bz2
xv6-labs-dca5b5ca2e3687f27ebf589fe3855966932840d8.zip
avoid assignments in declarations
Diffstat (limited to 'sysfile.c')
-rw-r--r--sysfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysfile.c b/sysfile.c
index a73f250..e5d4eae 100644
--- a/sysfile.c
+++ b/sysfile.c
@@ -54,7 +54,7 @@ int
sys_pipe(void)
{
int *fd;
- struct file *rf = 0, *wf = 0;
+ struct file *rf, *wf;
int fd0, fd1;
if(argptr(0, (void*)&fd, 2*sizeof fd[0]) < 0)