lkml.org 
[lkml]   [2014]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 1/4] get_maintainer: use three argument open
Use 3 argument open to avoid any issues with parsing
and silence perlcritic.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>

--- a/scripts/get_maintainer.pl 2014-05-26 12:47:35.039720690 -0700
+++ b/scripts/get_maintainer.pl 2014-05-26 13:27:52.000000000 -0700
@@ -426,7 +426,7 @@ foreach my $file (@ARGV) {
my $file_cnt = @files;
my $lastfile;

- open(my $patch, "< $file")
+ open(my $patch, '<', $file)
or die "$P: Can't open $file: $!\n";

# We can check arbitrary information before the patch


\
 
 \ /
  Last update: 2014-05-26 23:01    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog