summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/gwlb.inc4
-rw-r--r--etc/inc/interfaces.inc6
2 files changed, 5 insertions, 5 deletions
diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc
index ce90e69..03773ea 100644
--- a/etc/inc/gwlb.inc
+++ b/etc/inc/gwlb.inc
@@ -313,7 +313,7 @@ function return_gateways_array($disabled = false) {
if(! interface_has_gateway($ifname))
continue;
- $ifcfg =& $config['interfaces'][$ifname];
+ $ifcfg = $config['interfaces'][$ifname];
if (!empty($ifcfg['ipaddr']) && is_ipaddr($ifcfg['ipaddr']))
continue;
@@ -497,7 +497,7 @@ function get_interface_gateway($interface, &$dynamic = false) {
$gw = NULL;
- $gwcfg =& $config['interfaces'][$interface];
+ $gwcfg = $config['interfaces'][$interface];
if (!empty($gwcfg['gateway']) && is_array($config['gateways']['gateway_item'])) {
foreach($config['gateways']['gateway_item'] as $gateway) {
if ($gateway['name'] == $gwcfg['gateway']) {
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 4462ebf..2675f03 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2706,7 +2706,7 @@ function convert_real_interface_to_friendly_interface_name($interface = "wan") {
}
/* XXX: For speed reasons reference directly the interface array */
- $ifdescrs =& $config['interfaces'];
+ $ifdescrs = $config['interfaces'];
//$ifdescrs = get_configured_interface_list(false, true);
foreach ($ifdescrs as $if => $ifname) {
@@ -2851,7 +2851,7 @@ function get_real_interface($interface = "wan") {
if (empty($config['interfaces'][$interface]))
break;
- $cfg =& $config['interfaces'][$interface];
+ $cfg = $config['interfaces'][$interface];
// Wireless cloned NIC support (FreeBSD 8+)
// interface name format: $parentnic_wlanparentnic#
@@ -3238,7 +3238,7 @@ function interface_has_gateway($friendly) {
if (!empty($config['interfaces'][$friendly])) {
if (substr($friendly, 0, 5) == "ovpnc")
return true;
- $ifname =& $config['interfaces'][$friendly];
+ $ifname = $config['interfaces'][$friendly];
switch ($ifname['ipaddr']) {
case "dhcp":
case "carpdev-dhcp":
OpenPOWER on IntegriCloud