Author: eadler
Date: Thu Feb 16 05:17:06 2012
New Revision: 231817
URL: http://svn.freebsd.org/changeset/base/231817

Log:
  Fix warning when compiling with gcc46
  
  Approved by:  cperciva
  MFC after:    3 days

Modified:
  head/usr.sbin/IPXrouted/tables.c

Modified: head/usr.sbin/IPXrouted/tables.c
==============================================================================
--- head/usr.sbin/IPXrouted/tables.c    Thu Feb 16 05:17:01 2012        
(r231816)
+++ head/usr.sbin/IPXrouted/tables.c    Thu Feb 16 05:17:06 2012        
(r231817)
@@ -172,7 +172,6 @@ rtadd_clone(struct rt_entry *ort, struct
 {
        struct afhash h;
        register struct rt_entry *rt;
-       struct rthash *rh;
        int af = dst->sa_family, flags;
        u_int hash;
 
@@ -183,7 +182,6 @@ rtadd_clone(struct rt_entry *ort, struct
        (*afswitch[af].af_hash)(dst, &h);
        flags = (*afswitch[af].af_ishost)(dst) ? RTF_HOST : 0;
        hash = h.afh_nethash;
-       rh = &nethash[hash & ROUTEHASHMASK];
        rt = (struct rt_entry *)malloc(sizeof (*rt));
        if (rt == 0)
                return;
@@ -213,7 +211,6 @@ rtchange(struct rt_entry *rt, struct soc
     short ticks)
 {
        int doioctl = 0, metricchanged = 0;
-       struct rtuentry oldroute;
 
        FIXLEN(gate);
        /*
@@ -281,7 +278,6 @@ rtchange(struct rt_entry *rt, struct soc
        if (doioctl || metricchanged) {
                TRACE_ACTION("CHANGE FROM", rt);
                if (doioctl) {
-                       oldroute = rt->rt_rt;
                        rt->rt_router = *gate;
                }
                rt->rt_metric = metric;
_______________________________________________
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