summaryrefslogtreecommitdiff
path: root/sysfile.c
diff options
context:
space:
mode:
authorrsc <rsc>2007-08-27 23:53:17 +0000
committerrsc <rsc>2007-08-27 23:53:17 +0000
commit3a2310f7465ed92db7ce9ecfd619e8ac2011a789 (patch)
tree38a9f7e9b714132bd449d6ed65b1c3c2435b1c10 /sysfile.c
parent64c47374772c2311bf6d751869eabb95b017c2a7 (diff)
downloadxv6-labs-3a2310f7465ed92db7ce9ecfd619e8ac2011a789.tar.gz
xv6-labs-3a2310f7465ed92db7ce9ecfd619e8ac2011a789.tar.bz2
xv6-labs-3a2310f7465ed92db7ce9ecfd619e8ac2011a789.zip
make code match comment
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 f12b2e1..d18aa1b 100644
--- a/sysfile.c
+++ b/sysfile.c
@@ -17,7 +17,7 @@ argfd(int n, int *pfd, struct file **pf)
int fd;
struct file *f;
- if(argint(argno, &fd) < 0)
+ if(argint(n, &fd) < 0)
return -1;
if(fd < 0 || fd >= NOFILE || (f=cp->ofile[fd]) == 0)
return -1;