diff options
author | John Baldwin <jhb@FreeBSD.org> | 2013-09-05 14:16:37 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2013-09-05 14:16:37 +0000 |
commit | fa302f207f9c753c645630edd34c00225af11a96 (patch) | |
tree | 577c9e19d14b7498bffe654d8262804851771aee /sys/netinet/ip_mroute.c | |
parent | 98fa0351354c686e430214de83cf5ee11727d241 (diff) | |
download | src-fa302f207f9c753c645630edd34c00225af11a96.tar.gz src-fa302f207f9c753c645630edd34c00225af11a96.zip |
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
Notes
Notes:
svn path=/head/; revision=255248
Diffstat (limited to 'sys/netinet/ip_mroute.c')
-rw-r--r-- | sys/netinet/ip_mroute.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c index 6d3f9905abb9..d490bbe49d46 100644 --- a/sys/netinet/ip_mroute.c +++ b/sys/netinet/ip_mroute.c @@ -609,7 +609,7 @@ static void if_detached_event(void *arg __unused, struct ifnet *ifp) { vifi_t vifi; - int i; + u_long i; MROUTER_LOCK(); @@ -705,7 +705,7 @@ static int X_ip_mrouter_done(void) { struct ifnet *ifp; - int i; + u_long i; vifi_t vifi; MROUTER_LOCK(); @@ -797,7 +797,7 @@ set_assert(int i) int set_api_config(uint32_t *apival) { - int i; + u_long i; /* * We can set the API capabilities only if it is the first operation @@ -1433,7 +1433,7 @@ non_fatal: static void expire_upcalls(void *arg) { - int i; + u_long i; CURVNET_SET((struct vnet *) arg); |