aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkincludes.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/checkincludes.pl')
-rwxr-xr-xscripts/checkincludes.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkincludes.pl b/scripts/checkincludes.pl
index 8e6b716c191c..32ebff659fcc 100755
--- a/scripts/checkincludes.pl
+++ b/scripts/checkincludes.pl
@@ -13,12 +13,12 @@ foreach $file (@ARGV) {
13 ++$includedfiles{$1}; 13 ++$includedfiles{$1};
14 } 14 }
15 } 15 }
16
17 close(FILE);
16 18
17 foreach $filename (keys %includedfiles) { 19 foreach $filename (keys %includedfiles) {
18 if ($includedfiles{$filename} > 1) { 20 if ($includedfiles{$filename} > 1) {
19 print "$file: $filename is included more than once.\n"; 21 print "$file: $filename is included more than once.\n";
20 } 22 }
21 } 23 }
22
23 close(FILE);
24} 24}