remove the once hack; vjs says it is not necessary with the monotonic
time kludge. We'll see.
This commit is contained in:
parent
1e57dbd85e
commit
59fd2f8be8
|
@ -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 <sys/cdefs.h>
|
||||
__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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue