From: espie Date: Fri, 19 May 2023 07:25:16 +0000 (+0000) Subject: remove indirect calls X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3550cba9d2885083999cc0766f9aa6ef7afcc637;p=openbsd remove indirect calls --- 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