summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/ip6_mroute.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2013-09-05 14:16:37 +0000
committerjhb <jhb@FreeBSD.org>2013-09-05 14:16:37 +0000
commit057d03f1deec896feae9a7bfe79a5f8905997f06 (patch)
tree577c9e19d14b7498bffe654d8262804851771aee /sys/netinet6/ip6_mroute.c
parent84626a2dc579eaf7b15be8df1efb74c26c778208 (diff)
downloadFreeBSD-src-057d03f1deec896feae9a7bfe79a5f8905997f06.zip
FreeBSD-src-057d03f1deec896feae9a7bfe79a5f8905997f06.tar.gz
Use an unsigned long when indexing into mfchashtbl[] and mf6ctable[]. This
matches the types used when computing hash indices and the type of the maximum size of mfchashtbl[]. PR: kern/181821 Submitted by: Sven-Thorsten Dietrich <sven@vyatta.com> (IPv4) MFC after: 1 week
Diffstat (limited to 'sys/netinet6/ip6_mroute.c')
-rw-r--r--sys/netinet6/ip6_mroute.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c
index 9634636..36d0d6f 100644
--- a/sys/netinet6/ip6_mroute.c
+++ b/sys/netinet6/ip6_mroute.c
@@ -576,7 +576,7 @@ int
X_ip6_mrouter_done(void)
{
mifi_t mifi;
- int i;
+ u_long i;
struct mf6c *rt;
struct rtdetq *rte;
@@ -1341,7 +1341,7 @@ expire_upcalls(void *unused)
{
struct rtdetq *rte;
struct mf6c *mfc, **nptr;
- int i;
+ u_long i;
MFC6_LOCK();
for (i = 0; i < MF6CTBLSIZ; i++) {
OpenPOWER on IntegriCloud