From c1cb99c965099aa5c772556a6d21238a0c765fbb Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Thu, 16 Feb 2012 05:17:06 +0000 Subject: [PATCH] Fix warning when compiling with gcc46 Approved by: cperciva MFC after: 3 days --- usr.sbin/IPXrouted/tables.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/usr.sbin/IPXrouted/tables.c b/usr.sbin/IPXrouted/tables.c index fe816b2d9271..aebc792b9cf1 100644 --- a/usr.sbin/IPXrouted/tables.c +++ b/usr.sbin/IPXrouted/tables.c @@ -172,7 +172,6 @@ rtadd_clone(struct rt_entry *ort, struct sockaddr *dst, { 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 sockaddr *dst, (*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 sockaddr *gate, short metric, short ticks) { int doioctl = 0, metricchanged = 0; - struct rtuentry oldroute; FIXLEN(gate); /* @@ -281,7 +278,6 @@ rtchange(struct rt_entry *rt, struct sockaddr *gate, short metric, if (doioctl || metricchanged) { TRACE_ACTION("CHANGE FROM", rt); if (doioctl) { - oldroute = rt->rt_rt; rt->rt_router = *gate; } rt->rt_metric = metric;