From b21b19c5785487f2ff4a6ce38f45c2e6c35f4363 Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 15 Jun 2003 01:28:29 +0000 Subject: 2003-06-15 Paul Jakma * lib/vty.{c,h}: Remove vty layer depending on a 'master' global, pass the thread master in explicitly to vty_init. Sort out some header dependency problems with lib/command.h * zebra/: Move globals to struct zebrad. Update vty_init(). * (.*)/\1_main.c: update call to vty_init(). --- zebra/zebra_rib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zebra/zebra_rib.c') diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index 4098db26..2209364c 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -37,7 +37,7 @@ #include "zebra/debug.h" /* Default rtm_table for all clients */ -extern int rtm_table_default; +extern struct zebra_t zebrad; /* Each route type's string and default distance value. */ struct @@ -2147,7 +2147,7 @@ rib_weed_table (struct route_table *table) { next = rib->next; - if (rib->table != rtm_table_default && + if (rib->table != zebrad.rtm_table_default && rib->table != RT_TABLE_MAIN) { rib_delnode (rn, rib); -- cgit v1.2.3