Fix an uninitialized variable warning
authorVolker Lendecke <vl@sernet.de>
Sat, 13 Oct 2007 14:43:07 +0000 (16:43 +0200)
committerVolker Lendecke <vl@sernet.de>
Sat, 13 Oct 2007 19:44:58 +0000 (21:44 +0200)
source/lib/interfaces.c

index 20d91439f598367f8a7bcb467d2b469982864673..122101cdc996abc7131248a24ec31e2988f9849a 100644 (file)
@@ -549,10 +549,10 @@ static int iface_comp(struct iface_struct *i1, struct iface_struct *i2)
                s1 = (struct sockaddr_in *)&i1->netmask;
                s2 = (struct sockaddr_in *)&i2->netmask;
 
-               r = ntohl(s1->sin_addr.s_addr) -
+               return ntohl(s1->sin_addr.s_addr) -
                        ntohl(s2->sin_addr.s_addr);
        }
-       return r;
+       return 0;
 }
 
 int get_interfaces(struct iface_struct *ifaces, int max_interfaces);