8/2000 Andi Kleen make the list operations a bit more efficient.
People are crazy enough to use thousands of aliases now.
- $Id: interface.c,v 1.25 2002/12/05 21:54:50 ecki Exp $
+ $Id: interface.c,v 1.26 2002/12/05 22:10:32 ecki Exp $
*/
#include "config.h"
{
struct interface *ife;
- if (!int_list_all && (if_readlist() < 0))
+ if (!if_list_all && (if_readlist() < 0))
return -1;
for (ife = int_list; ife; ife = ife->next) {
int err = doit(ife, cookie);
free(ife);
}
int_last = NULL;
- int_list_all = 0;
+ if_list_all = 0;
return 0;
}
int if_readlist(void)
{
/* caller will/should check not to call this too often
- * (i.e. only if int_list_all == 0
+ * (i.e. only if if_list_all == 0
*/
int err = if_readlist_proc(NULL);