From: Alex Rousskov Date: Thu, 3 Oct 2013 18:25:05 +0000 (-0600) Subject: Polished source code. X-Git-Tag: SQUID_3_5_0_1~98^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00c328dd9b9b557d01c6de4da7fa807ff00433cf;p=thirdparty%2Fsquid.git Polished source code. --- diff --git a/scripts/boiler-mgr.pl b/scripts/boiler-mgr.pl index a6fa29b2af..8dc1e0f989 100755 --- a/scripts/boiler-mgr.pl +++ b/scripts/boiler-mgr.pl @@ -198,7 +198,7 @@ sub readFile() { return $code; } -sub writeFile { +sub writeFile() { my ($fname, $code) = @_; open(OF, ">$fname") or die("cannot open $fname for writing: $!, stopped"); @@ -244,20 +244,20 @@ sub digestable() { } # removes all opening whitespace -sub trimL { +sub trimL() { my ($code) = @_; $code =~ s/^\n[\n\s]*//s; return $code; } # removes all trailing whitespace -sub trimR { +sub trimR() { my ($code) = @_; $code =~ s/\n[\n\s]*$//s; return $code; } -sub Warn { +sub Warn() { my ($msg, $context) = @_; if (defined $context) {