mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
checkincludes.pl: close file as soon as we're done with it
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
parent
7db86dc97f
commit
d9a7a2bd07
1 changed files with 2 additions and 2 deletions
|
@ -13,12 +13,12 @@ foreach $file (@ARGV) {
|
||||||
++$includedfiles{$1};
|
++$includedfiles{$1};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
close(FILE);
|
||||||
|
|
||||||
foreach $filename (keys %includedfiles) {
|
foreach $filename (keys %includedfiles) {
|
||||||
if ($includedfiles{$filename} > 1) {
|
if ($includedfiles{$filename} > 1) {
|
||||||
print "$file: $filename is included more than once.\n";
|
print "$file: $filename is included more than once.\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
close(FILE);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue