summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2023-05-19 07:25:17 +0000
committerMarc Espie <espie@cvs.openbsd.org>2023-05-19 07:25:17 +0000
commit589164a845841b00ef6df1688535584fbac73bea (patch)
tree54320e45a0ccfe0bdc9e43493101897ff96ad592 /usr.sbin
parent7e4ff845d817668078117877422a947c85db712b (diff)
remove indirect calls
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Getopt.pm4
-rw-r--r--usr.sbin/pkg_add/OpenBSD/State.pm4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Getopt.pm b/usr.sbin/pkg_add/OpenBSD/Getopt.pm
index d25bf2b5842..f382c3fa09e 100644
--- a/usr.sbin/pkg_add/OpenBSD/Getopt.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Getopt.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Getopt.pm,v 1.13 2023/05/17 15:51:58 espie Exp $
+# $OpenBSD: Getopt.pm,v 1.14 2023/05/19 07:25:16 espie Exp $
#
# Copyright (c) 2006 Marc Espie <espie@openbsd.org>
#
@@ -82,7 +82,7 @@ sub getopts
}
}
local $Exporter::ExportLevel = 1;
- import OpenBSD::Getopt;
+ OpenBSD::Getopt->import;
return $hash;
}
diff --git a/usr.sbin/pkg_add/OpenBSD/State.pm b/usr.sbin/pkg_add/OpenBSD/State.pm
index 178245e646e..6ca9fdb1cfb 100644
--- a/usr.sbin/pkg_add/OpenBSD/State.pm
+++ b/usr.sbin/pkg_add/OpenBSD/State.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: State.pm,v 1.71 2022/02/12 09:46:19 espie Exp $
+# $OpenBSD: State.pm,v 1.72 2023/05/19 07:25:16 espie Exp $
#
# Copyright (c) 2007-2014 Marc Espie <espie@openbsd.org>
#
@@ -242,7 +242,7 @@ sub handle_options
push(@EXPORT, "\$opt_$k");
}
local $Exporter::ExportLevel = $state->{export_level};
- import OpenBSD::State;
+ OpenBSD::State->import;
}
sub defines