diff options
| author | David Vrabel <david.vrabel@csr.com> | 2008-11-19 14:48:07 +0000 | 
|---|---|---|
| committer | David Vrabel <david.vrabel@csr.com> | 2008-11-19 14:48:07 +0000 | 
| commit | dba0a918722ee0f0ba3442575e4448c3ab622be4 (patch) | |
| tree | fdb466cf09e7916135098d651b18924b2fe9ba5f /scripts/headers_check.pl | |
| parent | 0996e6382482ce9014787693d3884e9468153a5c (diff) | |
| parent | 7f0f598a0069d1ab072375965a4b69137233169c (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into for-upstream
Diffstat (limited to 'scripts/headers_check.pl')
| -rw-r--r-- | scripts/headers_check.pl | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/headers_check.pl b/scripts/headers_check.pl index 15d53a6b1a1..488a3b1f760 100644 --- a/scripts/headers_check.pl +++ b/scripts/headers_check.pl @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/perl -w  #  # headers_check.pl execute a number of trivial consistency checks  # @@ -17,7 +17,6 @@  # 2) TODO: check for leaked CONFIG_ symbols  use strict; -use warnings;  my ($dir, $arch, @files) = @ARGV; @@ -27,14 +26,15 @@ my $lineno = 0;  my $filename;  foreach my $file (@files) { +	local *FH;  	$filename = $file; -	open(my $fh, '<', "$filename") or die "$filename: $!\n"; +	open(FH, "<$filename") or die "$filename: $!\n";  	$lineno = 0; -	while ($line = <$fh>) { +	while ($line = <FH>) {  		$lineno++;  		check_include();  	} -	close $fh; +	close FH;  }  exit $ret;  | 
