From: Don Armstrong Date: Thu, 6 Mar 2014 00:20:05 +0000 (-0800) Subject: remove useless prototypes X-Git-Url: https://git.donarmstrong.com/?p=bugscan.git;a=commitdiff_plain;h=95f2bc83a3ae08104239ff38b685286a88fecb20 remove useless prototypes --- diff --git a/scanlib.pm b/scanlib.pm index 4705946..7cd2e63 100644 --- a/scanlib.pm +++ b/scanlib.pm @@ -51,14 +51,10 @@ sub readmaintainers() { } -sub readsources() { - my $root; # Root of archive we are scanning - my $archive; # Name of archive we are scanning - my $sect; # Name of current section - - $root=shift; - $archive=shift; - for $sect (@bugcfg::sections) { +sub readsources { + my ($root,$archive) = @_; + + for my $sect (@bugcfg::sections) { open(P, "zcat $root/$sect/source/Sources.gz|") or die open "open: $sect sourcelist: $!\n"; while (

) { @@ -101,12 +97,9 @@ sub readpackages { } } -sub readdebbugssources() { - my $file; - my $archive; +sub readdebbugssources { + my ($file,$archive) = @_; - $file=shift; - $archive=shift; open(P, $file) or die "open: $file: $!\n"; while (

) {