summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnicronNL <khagen@multi.eu>2016-04-19 13:48:37 +0200
committerUnicronNL <khagen@multi.eu>2016-04-19 13:48:37 +0200
commit397864e7371df953b0c5093493f49a5a2cd935c2 (patch)
treec472a68d6d05d8f065387f80a2f1b22dc93f1cf9
parentcb57bb761d7aa6317aa7980c097e7d77590c4a51 (diff)
downloadvyatta-op-vpn-397864e7371df953b0c5093493f49a5a2cd935c2.tar.gz
vyatta-op-vpn-397864e7371df953b0c5093493f49a5a2cd935c2.zip
defined(@array) is deprecated, omit the defined()
-rwxr-xr-xscripts/vyatta-op-vpn.pl6
-rw-r--r--scripts/vyatta-op-vpnprof.pl6
2 files changed, 6 insertions, 6 deletions
diff --git a/scripts/vyatta-op-vpn.pl b/scripts/vyatta-op-vpn.pl
index d6648ae..50cbcbd 100755
--- a/scripts/vyatta-op-vpn.pl
+++ b/scripts/vyatta-op-vpn.pl
@@ -73,10 +73,10 @@ if (defined $show_ipsec_sa_peer) {
if (defined $show_ipsec_sa_peer_detail) {
Vyatta::VPN::OPMode::show_ipsec_sa_peer_detail($show_ipsec_sa_peer_detail);
}
-if (defined @show_ipsec_sa_conn_detail) {
+if (@show_ipsec_sa_conn_detail) {
Vyatta::VPN::OPMode::show_ipsec_sa_conn_detail(@show_ipsec_sa_conn_detail);
}
-if (defined @show_ipsec_sa_conn) {
+if (@show_ipsec_sa_conn) {
Vyatta::VPN::OPMode::show_ipsec_sa_conn(@show_ipsec_sa_conn);
}
if (defined $show_ipsec_sa_natt) {
@@ -88,7 +88,7 @@ if (defined $show_ipsec_sa_stats) {
if (defined $show_ipsec_sa_stats_peer) {
Vyatta::VPN::OPMode::show_ipsec_sa_stats_peer($show_ipsec_sa_stats_peer);
}
-if (defined @show_ipsec_sa_stats_conn) {
+if (@show_ipsec_sa_stats_conn) {
Vyatta::VPN::OPMode::show_ipsec_sa_stats_conn(@show_ipsec_sa_stats_conn);
}
if (defined $show_ike_sa) {
diff --git a/scripts/vyatta-op-vpnprof.pl b/scripts/vyatta-op-vpnprof.pl
index 72124fa..4da46c4 100644
--- a/scripts/vyatta-op-vpnprof.pl
+++ b/scripts/vyatta-op-vpnprof.pl
@@ -52,11 +52,11 @@ if ( defined $show_ipsec_sa_profile_detail ) {
Vyatta::vpnprof::OPMode::show_ipsec_sa_profile_detail(
$show_ipsec_sa_profile_detail);
}
-if ( defined @show_ipsec_sa_conn_detail ) {
+if ( @show_ipsec_sa_conn_detail ) {
Vyatta::vpnprof::OPMode::show_ipsec_sa_conn_detail(
@show_ipsec_sa_conn_detail);
}
-if ( defined @show_ipsec_sa_conn ) {
+if ( @show_ipsec_sa_conn ) {
Vyatta::vpnprof::OPMode::show_ipsec_sa_conn(@show_ipsec_sa_conn);
}
if ( defined $show_ipsec_sa_stats ) {
@@ -66,7 +66,7 @@ if ( defined $show_ipsec_sa_stats_profile ) {
Vyatta::vpnprof::OPMode::show_ipsec_sa_stats_profile(
$show_ipsec_sa_stats_profile);
}
-if ( defined @show_ipsec_sa_stats_conn ) {
+if ( @show_ipsec_sa_stats_conn ) {
Vyatta::vpnprof::OPMode::show_ipsec_sa_stats_conn(
@show_ipsec_sa_stats_conn);
}