Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Remove unused variable
details: https://anonhg.NetBSD.org/src/rev/79bf920767d6
branches: trunk
changeset: 789956:79bf920767d6
user: martin <martin%NetBSD.org@localhost>
date: Sat Sep 14 11:41:45 2013 +0000
description:
Remove unused variable
diffstat:
sys/external/bsd/ipf/netinet/ip_htable.c | 7 ++-----
sys/netinet/ip_mroute.c | 8 ++------
2 files changed, 4 insertions(+), 11 deletions(-)
diffs (73 lines):
diff -r d992bbce78e9 -r 79bf920767d6 sys/external/bsd/ipf/netinet/ip_htable.c
--- a/sys/external/bsd/ipf/netinet/ip_htable.c Sat Sep 14 11:39:08 2013 +0000
+++ b/sys/external/bsd/ipf/netinet/ip_htable.c Sat Sep 14 11:41:45 2013 +0000
@@ -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 @@
#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 @@
{
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 @@
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 @@
} 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
diff -r d992bbce78e9 -r 79bf920767d6 sys/netinet/ip_mroute.c
--- a/sys/netinet/ip_mroute.c Sat Sep 14 11:39:08 2013 +0000
+++ b/sys/netinet/ip_mroute.c Sat Sep 14 11:41:45 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_mroute.c,v 1.127 2013/06/05 19:01:26 christos Exp $ */
+/* $NetBSD: ip_mroute.c,v 1.128 2013/09/14 11:43:22 martin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -93,7 +93,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_mroute.c,v 1.127 2013/06/05 19:01:26 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_mroute.c,v 1.128 2013/09/14 11:43:22 martin Exp $");
#include "opt_inet.h"
#include "opt_ipsec.h"
@@ -1054,12 +1054,8 @@
struct rtdetq *rte, *nrte;
u_short nstl;
int s;
- int mfcctl_size = sizeof(struct mfcctl);
int error;
- if (mrt_api_config & MRT_API_FLAGS_ALL)
- mfcctl_size = sizeof(struct mfcctl2);
-
/*
* select data size depending on API version.
*/
Home |
Main Index |
Thread Index |
Old Index