lkml.org 
[lkml]   [2009]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/3] checkincludes.pl: close file as soon as we're done with it
Date
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
---
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


\
 
 \ /
  Last update: 2009-08-06 02:55    [W:0.047 / U:0.508 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site