summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2014-03-18 20:56:30 +0000
committerespie <espie@openbsd.org>2014-03-18 20:56:30 +0000
commitbaed7296d99afd5dae32a63bd1e5e4c6ccf39b2c (patch)
tree4c314d312ac105e91ecffd32b40e29d582976a49
parentzap "my $_" for reading STDIN. (diff)
downloadwireguard-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.pm4
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';