From: Andrew Chilton Date: Sun, 29 Jun 2008 10:25:30 +0000 (+1200) Subject: General move around (#b18c21e8). X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=990e77720e35f5c894c2b2dc9064c672af82bd39;p=cil.git General move around (#b18c21e8). --- diff --git a/bin/cil b/bin/cil index 3ff7e17..14f47b4 100755 --- a/bin/cil +++ b/bin/cil @@ -532,20 +532,8 @@ sub cmd_fsck { separator(); } -sub print_fsck_errors { - my ($entity, $errors) = @_; - return unless keys %$errors; - - separator(); - foreach my $issue_name ( keys %$errors ) { - title( "$entity $issue_name "); - foreach my $error ( @{$errors->{$issue_name}} ) { - msg("* $error"); - } - } -} - ## ---------------------------------------------------------------------------- +# helpers sub check_paths { my ($cil) = @_; @@ -603,6 +591,19 @@ sub filter_issues { return \@new_issues; } +sub print_fsck_errors { + my ($entity, $errors) = @_; + return unless keys %$errors; + + separator(); + foreach my $issue_name ( keys %$errors ) { + title( "$entity $issue_name "); + foreach my $error ( @{$errors->{$issue_name}} ) { + msg("* $error"); + } + } +} + ## ---------------------------------------------------------------------------- # input/output