summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD/PackageInfo.pm
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2023-05-17 15:51:59 +0000
committerMarc Espie <espie@cvs.openbsd.org>2023-05-17 15:51:59 +0000
commit9acfc1df23cd8f04df75167de154041bbb0f1689 (patch)
tree5e9f4aab83e59999149e0e05b2dbc7e9de954c5f /usr.sbin/pkg_add/OpenBSD/PackageInfo.pm
parent9ce21a5b2dedc4d34ed391934415c721c25d5635 (diff)
stop using old-style prototypes except where strictly necessary
(for try/catch) signatures will be much more powerful once I move to 5.36
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD/PackageInfo.pm')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageInfo.pm8
1 files changed, 4 insertions, 4 deletions
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 <espie@openbsd.org>
#
@@ -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);