checkincludes.pl: close file as soon as we're done with it
PATCH 5/18 checkincludes.pl: close file as soon as we're done with it
From: "Luis R. Rodriguez" <[email protected]>
Signed-off-by Luis R. Rodriguez <[email protected]>
Cc Sam Ravnborg <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
scripts/checkincludes.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/checkincludes.pl renamed from scripts/checkincludes.pl~checkincludespl-close-file-as-soon-as-were-done-with-it +2 -2
@@ -13,12 +13,12 @@ foreach $file (@ARGV) { ++$includedfiles{$1}; } } + + close(FILE); foreach $filename (keys %includedfiles) { if ($includedfiles{$filename} > 1) { print "$file: $filename is included more than once.\n"; } } - - close(FILE); }
_