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
This commit is contained in:
John Baldwin 2013-09-05 14:16:37 +00:00
parent 98fa035135
commit fa302f207f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=255248
2 changed files with 6 additions and 6 deletions

View File

@ -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 @@ X_ip_mforward(struct ip *ip, struct ifnet *ifp, struct mbuf *m,
static void
expire_upcalls(void *arg)
{
int i;
u_long i;
CURVNET_SET((struct vnet *) arg);

View File

@ -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++) {