summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Control
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Dpkg/Control')
-rw-r--r--scripts/Dpkg/Control/FieldsCore.pm2
-rw-r--r--scripts/Dpkg/Control/HashCore.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Dpkg/Control/FieldsCore.pm b/scripts/Dpkg/Control/FieldsCore.pm
index 6c0d9e2e5..bf724be08 100644
--- a/scripts/Dpkg/Control/FieldsCore.pm
+++ b/scripts/Dpkg/Control/FieldsCore.pm
@@ -540,7 +540,7 @@ The list might be empty for types where the order does not matter much.
=cut
sub field_ordered_list($) {
- my ($type) = @_;
+ my $type = shift;
return @{$FIELD_ORDER{$type}} if exists $FIELD_ORDER{$type};
return ();
}
diff --git a/scripts/Dpkg/Control/HashCore.pm b/scripts/Dpkg/Control/HashCore.pm
index d06c18f3b..05aaa55a8 100644
--- a/scripts/Dpkg/Control/HashCore.pm
+++ b/scripts/Dpkg/Control/HashCore.pm
@@ -133,7 +133,7 @@ sub new {
# that everything gets garbage-collected.
sub DESTROY {
- my ($self) = @_;
+ my $self = shift;
delete $$self->{fields};
}