From 1173518d7876bdaf0751d54db241c2c8972ff241 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 30 Apr 2010 07:22:09 -0700 Subject: [PATCH] More minor cleanup of first code Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Zones.pm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Zones.pm b/Shorewall/Perl/Shorewall/Zones.pm index 1c9144367..596a96827 100644 --- a/Shorewall/Perl/Shorewall/Zones.pm +++ b/Shorewall/Perl/Shorewall/Zones.pm @@ -408,17 +408,13 @@ sub process_zone( \$ ) { } } - for ( $options, $in_options, $out_options ) { - $_ = '' if $_ eq '-'; - } - $zones{$zone} = { type => $type, parents => \@parents, bridge => '', options => { in_out => parse_zone_option_list( $options || '', $type ) , in => parse_zone_option_list( $in_options || '', $type ) , out => parse_zone_option_list( $out_options || '', $type ) , - complex => ( $type == IPSEC || $options || $in_options || $out_options ) , + complex => ( $type == IPSEC || $options ne '-' || $in_options ne '-' || $out_options ne '-' ) , nested => @parents > 0 , super => 0 , } , @@ -1024,7 +1020,7 @@ sub map_physical( $$ ) { # # Returns true if passed interface matches an entry in /etc/shorewall/interfaces # -# If the passed name matches a wildcard, a entry for the name is added in %interfaces to speed up validation of other references to that name. +# If the passed name matches a wildcard, an entry for the name is added in %interfaces to speed up validation of other references to that name. # sub known_interface($) {