From 9acfc1df23cd8f04df75167de154041bbb0f1689 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Wed, 17 May 2023 15:51:59 +0000 Subject: stop using old-style prototypes except where strictly necessary (for try/catch) signatures will be much more powerful once I move to 5.36 --- usr.sbin/pkg_add/OpenBSD/PackageInfo.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.sbin/pkg_add/OpenBSD/PackageInfo.pm') diff --git a/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm b/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm index 865deb4b95e..979b0f4f9af 100644 --- a/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm +++ b/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: PackageInfo.pm,v 1.63 2022/02/15 07:35:35 espie Exp $ +# $OpenBSD: PackageInfo.pm,v 1.64 2023/05/17 15:51:58 espie Exp $ # # Copyright (c) 2003-2014 Marc Espie # @@ -174,7 +174,7 @@ sub installed_name return $name; } -sub info_names() +sub info_names { return @info; } @@ -187,7 +187,7 @@ sub is_info_name my $dlock; -sub lock_db($;$) +sub lock_db { my ($shared, $state) = @_; my $mode = $shared ? LOCK_SH : LOCK_EX; @@ -206,7 +206,7 @@ sub lock_db($;$) return; } -sub unlock_db() +sub unlock_db { if (defined $dlock) { flock($dlock, LOCK_UN); -- cgit v1.2.3