summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-05 18:56:33 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-05 18:56:33 -0700
commitceb9411e2a867544a745cd3eddc68f2232ed143d (patch)
tree8e872cdec7dd859a2e69a0781e6d9b5c1b2726c8
parent84cc940a9b74d5a867a5598f4b0f6c657eb61c9c (diff)
downloadquagga-ceb9411e2a867544a745cd3eddc68f2232ed143d.tar.bz2
quagga-ceb9411e2a867544a745cd3eddc68f2232ed143d.tar.xz
Make some rib data structures private
The route_info table can be static const, and the vrf_table can be static.
-rw-r--r--zebra/zebra_rib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 59b53fa1..8580517a 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -51,7 +51,7 @@ extern struct zebra_t zebrad;
int rib_process_hold_time = 10;
/* Each route type's string and default distance value. */
-struct
+static const struct
{
int key;
int distance;
@@ -70,7 +70,7 @@ struct
};
/* Vector for routing table. */
-vector vrf_vector;
+static vector vrf_vector;
/* Allocate new VRF. */
static struct vrf *