From 59fd2f8be8c8b13f5b2a06a230fa8dacceff23b8 Mon Sep 17 00:00:00 2001 From: christos Date: Thu, 2 Mar 2000 20:57:42 +0000 Subject: [PATCH] remove the once hack; vjs says it is not necessary with the monotonic time kludge. We'll see. --- sbin/routed/if.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sbin/routed/if.c b/sbin/routed/if.c index 0a91f1bbd8d1..eb314c25ee7a 100644 --- a/sbin/routed/if.c +++ b/sbin/routed/if.c @@ -1,4 +1,4 @@ -/* $NetBSD: if.c,v 1.18 1999/11/19 10:46:35 bouyer Exp $ */ +/* $NetBSD: if.c,v 1.19 2000/03/02 20:57:42 christos Exp $ */ /* * Copyright (c) 1983, 1993 @@ -37,7 +37,7 @@ static char sccsid[] __attribute__((unused)) = "@(#)if.c 8.1 (Berkeley) 6/5/93"; #elif defined(__NetBSD__) #include -__RCSID("$NetBSD: if.c,v 1.18 1999/11/19 10:46:35 bouyer Exp $"); +__RCSID("$NetBSD: if.c,v 1.19 2000/03/02 20:57:42 christos Exp $"); #endif #include "defs.h" @@ -243,7 +243,6 @@ struct interface * iflookup(naddr addr) { struct interface *ifp, *maybe; - int once = 0; maybe = 0; for (;;) { @@ -267,14 +266,13 @@ iflookup(naddr addr) } } - if (maybe != 0 || once) + if (maybe != 0) return maybe; /* If there is no known interface, maybe there is a * new interface. So just once look for new interfaces. */ ifinit(); - once = 1; } }