From 5a6d66f2639c55b3020eefc8c2333f7e836d8a54 Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 9 Mar 2009 20:57:18 +0000 Subject: [PATCH] Replace discrete tests with calls to fatal_error() with calls to assert(); second batch Signed-off-by: Tom Eastep git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9673 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/Perl/Shorewall/Zones.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Zones.pm b/Shorewall/Perl/Shorewall/Zones.pm index be48a8a01..8f493dc4d 100644 --- a/Shorewall/Perl/Shorewall/Zones.pm +++ b/Shorewall/Perl/Shorewall/Zones.pm @@ -478,7 +478,7 @@ sub single_interface( $ ) { my $zone = $_[0]; my $zoneref = $zones{$zone}; - fatal_error "Internal Error in single_zone()" unless $zoneref; + assert( $zoneref ); my @keys = keys( %{$zoneref->{interfaces}} ); @@ -787,7 +787,7 @@ sub validate_interfaces_file( $ ) $options{arp_ignore} = 1; } } else { - fatal_error "Internal Error in validate_interfaces_file"; + assert( 0 ); } } elsif ( $type == NUMERIC_IF_OPTION ) { fatal_error "The $option option requires a value" unless defined $value;