make code match comment
This commit is contained in:
parent
64c4737477
commit
3a2310f746
2 changed files with 7 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue