Module Name: src Committed By: martin Date: Sat Sep 14 11:41:45 UTC 2013
Modified Files: src/sys/external/bsd/ipf/netinet: ip_htable.c Log Message: Remove unused variable To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/external/bsd/ipf/netinet/ip_htable.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/ipf/netinet/ip_htable.c diff -u src/sys/external/bsd/ipf/netinet/ip_htable.c:1.3 src/sys/external/bsd/ipf/netinet/ip_htable.c:1.4 --- src/sys/external/bsd/ipf/netinet/ip_htable.c:1.3 Sun Jul 22 14:27:51 2012 +++ src/sys/external/bsd/ipf/netinet/ip_htable.c Sat Sep 14 11:41:45 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: ip_htable.c,v 1.3 2012/07/22 14:27:51 darrenr Exp $ */ +/* $NetBSD: ip_htable.c,v 1.4 2013/09/14 11:41:45 martin Exp $ */ /* * Copyright (C) 2012 by Darren Reed. @@ -60,7 +60,7 @@ struct file; #if !defined(lint) #if defined(__NetBSD__) #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ip_htable.c,v 1.3 2012/07/22 14:27:51 darrenr Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip_htable.c,v 1.4 2013/09/14 11:41:45 martin Exp $"); #else static const char rcsid[] = "@(#)Id: ip_htable.c,v 1.1.1.2 2012/07/22 13:45:19 darrenr Exp"; #endif @@ -995,7 +995,6 @@ ipf_htent_find(iphtable_t *iph, iphtent_ { iphtent_t ipe, *ent; u_int hv; - int bits; bcopy((char *)ipeo, (char *)&ipe, sizeof(ipe)); ipe.ipe_addr.i6[0] &= ipe.ipe_mask.i6[0]; @@ -1003,7 +1002,6 @@ ipf_htent_find(iphtable_t *iph, iphtent_ ipe.ipe_addr.i6[2] &= ipe.ipe_mask.i6[2]; ipe.ipe_addr.i6[3] &= ipe.ipe_mask.i6[3]; if (ipe.ipe_family == AF_INET) { - bits = count4bits(ipe.ipe_mask.in4_addr); ipe.ipe_addr.i6[1] = 0; ipe.ipe_addr.i6[2] = 0; ipe.ipe_addr.i6[3] = 0; @@ -1015,7 +1013,6 @@ ipf_htent_find(iphtable_t *iph, iphtent_ } else #ifdef USE_INET6 if (ipe.ipe_family == AF_INET6) { - bits = count6bits(ipe.ipe_mask.i6); hv = IPE_V6_HASH_FN(ipe.ipe_addr.i6, ipe.ipe_mask.i6, iph->iph_size); } else