mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-12 15:44:57 +02:00
xa-d-m: remove superfluous protos
This commit is contained in:
@@ -6,7 +6,7 @@ use strict;
|
|||||||
|
|
||||||
&main(\@ARGV);
|
&main(\@ARGV);
|
||||||
|
|
||||||
sub main ($)
|
sub main
|
||||||
{
|
{
|
||||||
local *FH;
|
local *FH;
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ sub main ($)
|
|||||||
close FH;
|
close FH;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub process_index ($)
|
sub process_index
|
||||||
{
|
{
|
||||||
my $top = shift @_;
|
my $top = shift @_;
|
||||||
my($agent, $res, $url);
|
my($agent, $res, $url);
|
||||||
@@ -68,14 +68,14 @@ sub process_index ($)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sub slash_remove ($)
|
sub slash_remove
|
||||||
{
|
{
|
||||||
my $s = shift @_;
|
my $s = shift @_;
|
||||||
$s =~ s{(\w+://)(.*)}{$1.&slash_remove2($2)}eg;
|
$s =~ s{(\w+://)(.*)}{$1.&slash_remove2($2)}eg;
|
||||||
return $s;
|
return $s;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub slash_remove2 ($)
|
sub slash_remove2
|
||||||
{
|
{
|
||||||
my $s = shift @_;
|
my $s = shift @_;
|
||||||
$s =~ s{/+}{/}g;
|
$s =~ s{/+}{/}g;
|
||||||
|
Reference in New Issue
Block a user