Minor cleanup of the Config module

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-05-15 09:29:12 -07:00
parent eb26a467e9
commit 965a8e8f68
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -536,7 +536,7 @@ our %config_files = ( #accounting => 1,
tunnels => 1,
zones => 1 );
#
# Options that involve the the AUDIT target
# Options that involve the AUDIT target
#
our @auditoptions = qw( BLACKLIST_DISPOSITION MACLIST_DISPOSITION TCP_FLAGS_DISPOSITION );
#
@ -1168,7 +1168,7 @@ sub initialize( $;$$) {
#
# Process the global shorewallrc file
#
# Note: The build file executes this function passing only the protocol family
# Note: The build script calls this function passing only the protocol family
#
process_shorewallrc( $shorewallrc,
$family == F_IPV4 ? 'shorewall' : 'shorewall6'
@ -1219,10 +1219,9 @@ sub compiletime() {
# Create 'currentlineinfo'
#
sub currentlineinfo() {
my $linenumber = $currentlinenumber || 1;
if ( $currentfilename ) {
my $lineinfo = " $currentfilename ";
my $linenumber = $currentlinenumber || 1;
my $lineinfo = " $currentfilename ";
if ( $linenumber eq 'EOF' ) {
$lineinfo .= '(EOF)'