From 70aff8bf476be60252e866cc380f961874affbd6 Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Sun, 17 Aug 2003 17:40:47 +0000 Subject: [PATCH] minor cleanup; no need for extra variable here Obtained from: KAME MFC after: 1 week --- usr.sbin/route6d/route6d.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c index 0b28e8a52e05..f02f39ec118a 100644 --- a/usr.sbin/route6d/route6d.c +++ b/usr.sbin/route6d/route6d.c @@ -83,7 +83,7 @@ static char _rcsid[] = "$KAME: route6d.c,v 1.64 2001/05/08 04:36:37 itojun Exp $ #ifdef DEBUG #define INIT_INTERVAL6 6 #else -#define INIT_INTERVAL6 10 /* Wait to submit an initial riprequest. */ +#define INIT_INTERVAL6 10 /* Wait to submit an initial riprequest */ #endif /* alignment constraint for routing socket */ @@ -138,7 +138,6 @@ int nifc; /* number of valid ifc's */ struct ifc **index2ifc; int nindex2ifc; struct ifc *loopifcp = NULL; /* pointing to loopback */ -int loopifindex = 0; /* ditto */ fd_set sockvec; /* vector to select() for receiving */ int rtsock; /* the routing socket */ int ripsock; /* socket to send/receive RIP datagram */ @@ -389,7 +388,6 @@ main(argc, argv) #else srand((unsigned)(time(NULL)^(pid<<16))); #endif - loopifindex = loopifcp->ifc_index; for (ifcp = ifc; ifcp; ifcp = ifcp->ifc_next) ifrt(ifcp, 0); filterconfig(); @@ -3073,7 +3071,7 @@ filterconfig() rrt->rrt_flags = RTF_UP | RTF_REJECT; rrt->rrt_rflags = RRTF_AGGREGATE; rrt->rrt_t = 0; - rrt->rrt_index = loopifindex; + rrt->rrt_index = loopifcp->ifc_index; #if 0 if (getroute(&rrt->rrt_info, &gw)) { #if 0