Author: jhb
Date: Wed Nov 13 18:33:14 2013
New Revision: 258102
URL: http://svnweb.freebsd.org/changeset/base/258102

Log:
  MFC 255248:
  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

Modified:
  stable/9/sys/netinet/ip_mroute.c
  stable/9/sys/netinet6/ip6_mroute.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/netinet/ip_mroute.c
==============================================================================
--- stable/9/sys/netinet/ip_mroute.c    Wed Nov 13 17:49:07 2013        
(r258101)
+++ stable/9/sys/netinet/ip_mroute.c    Wed Nov 13 18:33:14 2013        
(r258102)
@@ -608,7 +608,7 @@ static void
 if_detached_event(void *arg __unused, struct ifnet *ifp)
 {
     vifi_t vifi;
-    int i;
+    u_long i;
 
     MROUTER_LOCK();
 
@@ -704,7 +704,7 @@ static int
 X_ip_mrouter_done(void)
 {
     struct ifnet *ifp;
-    int i;
+    u_long i;
     vifi_t vifi;
 
     MROUTER_LOCK();
@@ -796,7 +796,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
@@ -1431,7 +1431,7 @@ non_fatal:
 static void
 expire_upcalls(void *arg)
 {
-    int i;
+    u_long i;
 
     CURVNET_SET((struct vnet *) arg);
 

Modified: stable/9/sys/netinet6/ip6_mroute.c
==============================================================================
--- stable/9/sys/netinet6/ip6_mroute.c  Wed Nov 13 17:49:07 2013        
(r258101)
+++ stable/9/sys/netinet6/ip6_mroute.c  Wed Nov 13 18:33:14 2013        
(r258102)
@@ -573,7 +573,7 @@ int
 X_ip6_mrouter_done(void)
 {
        mifi_t mifi;
-       int i;
+       u_long i;
        struct mf6c *rt;
        struct rtdetq *rte;
 
@@ -1338,7 +1338,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++) {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to