make code match comment

This commit is contained in:
rsc 2007-08-27 23:53:17 +00:00
parent 64c4737477
commit 3a2310f746
2 changed files with 7 additions and 8 deletions

View file

@ -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;