openbsd-ports/net/slirp/patches/patch-mkpro
millert 214315e968 split() not longer implicitly assigns its results to @_.
This functionality was deprecated some time ago and as of perl 5.12.2
is unsupported.
2010-09-24 15:16:20 +00:00

14 lines
341 B
Plaintext

$OpenBSD: patch-mkpro,v 1.1 2010/09/24 15:16:20 millert Exp $
--- mkpro.orig Wed Sep 13 04:55:36 1995
+++ mkpro Fri Sep 17 10:27:16 2010
@@ -87,7 +87,8 @@ STATE0:
$1 =~ /([^\*]+)/; # Remove "*"
$type = $1;
- $n = split(/,/);
+ @_ = split(/,/, $_);
+ $n = int(@_);
$nargs += $n;
goto STATE0 if ($nargs > $nargs_guess);