silence all gcc warnings

This commit is contained in:
Russ Cox
2005-11-07 17:13:41 +00:00
parent 7732ac0a9b
commit 1c8b499228
47 changed files with 192 additions and 128 deletions

View File

@ -189,7 +189,7 @@ dupfgrp(Fgrp *f)
new->maxfd = f->maxfd;
for(i = 0; i <= f->maxfd; i++) {
if(c = f->fd[i]){
if((c = f->fd[i])){
incref(&c->ref);
new->fd[i] = c;
}
@ -212,7 +212,7 @@ closefgrp(Fgrp *f)
return;
for(i = 0; i <= f->maxfd; i++)
if(c = f->fd[i])
if((c = f->fd[i]))
cclose(c);
free(f->fd);