fixed a typo

This commit is contained in:
Matthew Veety 2016-02-09 17:02:18 -05:00
parent a54782d69b
commit 9b2bed733c

View file

@ -25,7 +25,8 @@ getrdstruct(int fd)
ReadWriter *rval;
if(gio_filedes_st[fd] != 1)
rval = nil;
rval = gio_filedes[fd];
else
rval = gio_filedes[fd];
runlock(&giolock);
return rval;
}
@ -37,6 +38,7 @@ gopen(ReadWriter* rd, void *aux)
ReadWriter *buf;
wlock(&giolock);
pfd = getnext();
if(pfd == -1){
wunlock(&giolock);
return -1;