diff options
author | 2014-03-18 20:56:30 +0000 | |
---|---|---|
committer | 2014-03-18 20:56:30 +0000 | |
commit | baed7296d99afd5dae32a63bd1e5e4c6ccf39b2c (patch) | |
tree | 4c314d312ac105e91ecffd32b40e29d582976a49 | |
parent | zap "my $_" for reading STDIN. (diff) | |
download | wireguard-openbsd-baed7296d99afd5dae32a63bd1e5e4c6ccf39b2c.tar.xz wireguard-openbsd-baed7296d99afd5dae32a63bd1e5e4c6ccf39b2c.zip |
don't use $_ as "throw-away" variable, proper idiom is "undef"
(and if you're wondering about the unused extra parameter, this is
designed to allow a new makewhatis that shares more code with pkg_create)
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PkgCreate.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm index affb422a75c..e3516da0eb8 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgCreate.pm,v 1.103 2014/03/18 18:53:29 espie Exp $ +# $OpenBSD: PkgCreate.pm,v 1.104 2014/03/18 20:56:30 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org> # @@ -979,7 +979,7 @@ our @ISA = qw(OpenBSD::AddCreateDelete); sub handle_fragment { - my ($self, $state, $old, $not, $frag, $_, $cont) = @_; + my ($self, $state, $old, $not, $frag, undef, $cont) = @_; my $def = $frag; if ($frag eq 'SHARED') { $def = 'SHARED_LIBS'; |