sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 352eedff58f61fb1b6984dc14dd694c94fca0eb9
parent cb1b5d532b998148c6feb03269bf9f76e4c7ca86
Author: FRIGN <dev@frign.de>
Date:   Sat,  7 Feb 2015 21:42:41 +0100

No need to check for stdin on fclose()

as we are not trying to read from it afterwards.

Diffstat:
Mcmp.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/cmp.c b/cmp.c @@ -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; }