unused variable is deleted
authorMiklos Tirpak <miklos@iptel.org>
Tue, 20 May 2008 14:20:39 +0000 (14:20 +0000)
committerMiklos Tirpak <miklos@iptel.org>
Tue, 20 May 2008 14:20:39 +0000 (14:20 +0000)
ip_addr.h

index e325ed9..970f34e 100644 (file)
--- a/ip_addr.h
+++ b/ip_addr.h
@@ -237,9 +237,7 @@ inline static void ip_addr_mk_any(int af, struct ip_addr* ip)
 inline static int matchnet(struct ip_addr* ip, struct net* net)
 {
        unsigned int r;
-       int ret;
-       
-       ret=-1;
+
        if (ip->af == net->ip.af){
                for(r=0; r<ip->len/4; r++){ /* ipv4 & ipv6 addresses are
                                                                           all multiple of 4*/