X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fsubnet_parse.c;h=f980180019d0a42fd7429fbde65ccaf4a2306167;hp=22f5d707750e8d955945750da179694fe6adb59f;hb=d917c8cb6b69475d568ccbe82389b9f2b3eb5e80;hpb=58f4b845b9a7d83739af77337f2ce263d8df7838 diff --git a/src/subnet_parse.c b/src/subnet_parse.c index 22f5d707..f9801800 100644 --- a/src/subnet_parse.c +++ b/src/subnet_parse.c @@ -104,7 +104,7 @@ static int subnet_compare_mac(const subnet_t *a, const subnet_t *b) { if(result) return result; - + result = a->weight - b->weight; if(result || !a->owner || !b->owner) @@ -125,7 +125,7 @@ static int subnet_compare_ipv4(const subnet_t *a, const subnet_t *b) { if(result) return result; - + result = a->weight - b->weight; if(result || !a->owner || !b->owner) @@ -141,12 +141,12 @@ static int subnet_compare_ipv6(const subnet_t *a, const subnet_t *b) { if(result) return result; - + result = memcmp(&a->net.ipv6.address, &b->net.ipv6.address, sizeof(ipv6_t)); if(result) return result; - + result = a->weight - b->weight; if(result || !a->owner || !b->owner)