Change a warning message; simplify 'isolate_basic_target()'

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5705 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-03-26 20:52:38 +00:00
parent c3dc47460e
commit 8133c056fc
2 changed files with 2 additions and 4 deletions

View File

@ -113,9 +113,7 @@ sub merge_levels ($$) {
# Get Macro Name
#
sub isolate_basic_target( $ ) {
my $result = ( split '/' , $_[0] )[0];
( split /:/, $result )[0];
( split '/', ( split /:/ , $_[0] )[0] )[0];
}
#

View File

@ -301,7 +301,7 @@ sub zone_report()
}
}
print STDERR " *** $zone is an EMPTY ZONE ***\n" unless $printed || $type eq 'firewall';
warning_message "*** $zone is an EMPTY ZONE ***" unless $printed || $type eq 'firewall';
}
}