Project

General

Profile

« Previous | Next » 

Revision 9d3e8723

Added by Phil Davis almost 9 years ago

Code style and comments

No functional change - just making style consistent

View differences:

src/etc/inc/util.inc
872 872
	$subnetv4_start1 = gen_subnetv4($subnet1, $largest_sn);
873 873
	$subnetv4_start2 = gen_subnetv4($subnet2, $largest_sn);
874 874
	
875
	if($subnetv4_start1 == '' || $subnetv4_start2 == '') {
875
	if ($subnetv4_start1 == '' || $subnetv4_start2 == '') {
876 876
		// One or both args is not a valid IPv4 subnet
877 877
		//FIXME: needs to return "bad data" not true/false if bad. For now return false, best we can do until fixed
878 878
		return false;
......
887 887
	$subnetv6_start1 = gen_subnetv6($subnet1, $largest_sn);
888 888
	$subnetv6_start2 = gen_subnetv6($subnet2, $largest_sn);
889 889
	
890
	if($subnetv6_start1 == '' || $subnetv6_start2 == '') {
890
	if ($subnetv6_start1 == '' || $subnetv6_start2 == '') {
891 891
		// One or both args is not a valid IPv6 subnet
892 892
		//FIXME: needs to return "bad data" not true/false if bad. For now return false, best we can do until fixed
893 893
		return false;

Also available in: Unified diff