Fix whitespace.
[tinc] / src / subnet_parse.c
index a3c904f..f980180 100644 (file)
@@ -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)
@@ -194,7 +194,7 @@ bool str2net(subnet_t *subnet, const char *subnetstr) {
                subnet->net.ipv4.prefixlength = l;
                subnet->weight = weight;
 
-               for(i = 0; i < 4; i++) {
+               for(int i = 0; i < 4; i++) {
                        if(x[i] > 255)
                                return false;
                        subnet->net.ipv4.address.x[i] = x[i];