]> git.donarmstrong.com Git - bugscan.git/commitdiff
remove useless prototypes
authorDon Armstrong <don@donarmstrong.com>
Thu, 6 Mar 2014 00:20:05 +0000 (16:20 -0800)
committerDon Armstrong <don@donarmstrong.com>
Thu, 6 Mar 2014 00:20:05 +0000 (16:20 -0800)
scanlib.pm

index 4705946cc776ae35b0d2e6a31f3cc9d75f93055c..7cd2e63386c39cb3fa2abebef87f3391e0439c08 100644 (file)
@@ -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 (<P>) {
@@ -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 (<P>) {