Skip to content

Commit

Permalink
checkincludes.pl: close file as soon as we're done with it
Browse files Browse the repository at this point in the history
Signed-off-by: Luis R. Rodriguez <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
Luis R. Rodriguez authored and sravnborg committed Sep 20, 2009
1 parent 7db86dc commit d9a7a2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/checkincludes.pl
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
++$includedfiles{$1};
}
}

close(FILE);

foreach $filename (keys %includedfiles) {
if ($includedfiles{$filename} > 1) {
print "$file: $filename is included more than once.\n";
}
}

close(FILE);
}

0 comments on commit d9a7a2b

Please sign in to comment.