Correction to last change -- move two declarations to an outer block.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-09-28 12:20:06 -07:00
parent 48c3200a5a
commit 6171d938f7

View File

@ -1109,10 +1109,11 @@ sub process_interface( $$ ) {
# #
sub validate_interfaces_file( $ ) { sub validate_interfaces_file( $ ) {
my $export = shift; my $export = shift;
my @ifaces;
my $nextinum = 1;
if ( my $fn = open_file 'interfaces' ) { if ( my $fn = open_file 'interfaces' ) {
my @ifaces;
my $nextinum = 1;
first_entry "$doing $fn..."; first_entry "$doing $fn...";
push @ifaces, process_interface( $nextinum++, $export ) while read_a_line; push @ifaces, process_interface( $nextinum++, $export ) while read_a_line;
} else { } else {