[PATCH 1/3] checkincludes.pl: close file as soon as we're done with it

From: Luis R. Rodriguez
Date: Wed Aug 05 2009 - 20:51:52 EST


Signed-off-by: Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx>
---
scripts/checkincludes.pl | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/checkincludes.pl b/scripts/checkincludes.pl
index 8e6b716..32ebff6 100755
--- a/scripts/checkincludes.pl
+++ b/scripts/checkincludes.pl
@@ -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);
}
--
1.6.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/