From 589164a845841b00ef6df1688535584fbac73bea Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Fri, 19 May 2023 07:25:17 +0000 Subject: remove indirect calls --- usr.sbin/pkg_add/OpenBSD/Getopt.pm | 4 ++-- usr.sbin/pkg_add/OpenBSD/State.pm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.sbin') 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 # @@ -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 # @@ -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 -- cgit v1.2.3