No need to check for stdin on fclose()

as we are not trying to read from it afterwards.
This commit is contained in:
FRIGN 2015-02-07 21:42:41 +01:00
parent cb1b5d532b
commit 352eedff58

6
cmp.c
View File

@ -76,10 +76,8 @@ main(int argc, char *argv[])
same = 0;
}
}
for (n = 1; n < 2; n++)
if (fp[n] != stdin)
fclose(fp[n]);
fclose(fp[0]);
fclose(fp[1]);
return same ? Same : Diff;
}