diff options
author | jim-p <jimp@pfsense.org> | 2010-10-05 10:56:01 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-10-05 10:56:01 -0400 |
commit | 6727f4ef79526937d6d54af3c2138488e47a0a36 (patch) | |
tree | 35e6f4f4a308ad960bee5d70cd63f141e6a3dd21 /etc | |
parent | b676a6a9dbfe04db77b6ae37bbb4ecbc2d48c003 (diff) | |
download | pfsense-6727f4ef79526937d6d54af3c2138488e47a0a36.zip pfsense-6727f4ef79526937d6d54af3c2138488e47a0a36.tar.gz |
More unneeded references.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/gwlb.inc | 4 | ||||
-rw-r--r-- | etc/inc/interfaces.inc | 6 |
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": |