Cosmetic/readability changes

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-09-03 08:44:15 -07:00
parent d1fea7c682
commit 29e0f57928
3 changed files with 4 additions and 5 deletions

View File

@ -3138,7 +3138,7 @@ sub do_imac( $ ) {
} }
# #
# Mark validatation functions # Mark validation functions
# #
sub verify_mark( $ ) { sub verify_mark( $ ) {
my $mark = $_[0]; my $mark = $_[0];

View File

@ -615,7 +615,6 @@ sub compiler {
# shorewall.conf has been processed and the capabilities have been determined. # shorewall.conf has been processed and the capabilities have been determined.
# #
initialize_chain_table(1); initialize_chain_table(1);
# #
# Allow user to load Perl modules # Allow user to load Perl modules
# #
@ -697,7 +696,7 @@ sub compiler {
if ( $scriptfilename || $debug ) { if ( $scriptfilename || $debug ) {
emit 'return 0'; emit 'return 0';
pop_indent; pop_indent;
emit '}'; emit '}'; # End of setup_common_rules()
} }
disable_script; disable_script;
@ -735,7 +734,7 @@ sub compiler {
if ( $scriptfilename || $debug ) { if ( $scriptfilename || $debug ) {
pop_indent; pop_indent;
emit "}\n"; emit "}\n"; # End of setup_routing_and_traffic_shaping()
} }
disable_script; disable_script;

View File

@ -690,7 +690,7 @@ sub add_a_provider( $$ ) {
" > $undo" ); " > $undo" );
if ( $balance || $default ) { if ( $balance || $default ) {
$tbl = $fallback || $config{USE_DEFAULT_RT} ? DEFAULT_TABLE : MAIN_TABLE; $tbl = $fallback || ( $config{USE_DEFAULT_RT} ? DEFAULT_TABLE : MAIN_TABLE );
$weight = $balance ? $balance : $default; $weight = $balance ? $balance : $default;
my $via = 'via'; my $via = 'via';