diff options
author | paul <paul> | 2005-03-14 20:19:01 +0000 |
---|---|---|
committer | paul <paul> | 2005-03-14 20:19:01 +0000 |
commit | 450c5274a51e33680d7eeb3def753e24a832a8ac (patch) | |
tree | e870f47cce8521c9877d2cca82dcdf75ea9eac36 /zebra/zebra_rib.c | |
parent | 9c508a2628660c06b5c3e4a5cb28159ca232cbca (diff) | |
download | quagga-450c5274a51e33680d7eeb3def753e24a832a8ac.tar.bz2 quagga-450c5274a51e33680d7eeb3def753e24a832a8ac.tar.xz |
2005-03-14 Paul Jakma <paul.jakma@sun.com>
* (global) update all c files to match the lib/vector.h rename of
(struct vector).active to max, and vector_max macro to
vector_active.
* lib/vector.h: Rename to (struct vector).max to slightly less
confusing active, for the number of active slots, distinct from
allocated or active-and-not-empty. Rename vector_max to
vector_active for same reason.
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r-- | zebra/zebra_rib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c index f93f4235..8eb80619 100644 --- a/zebra/zebra_rib.c +++ b/zebra/zebra_rib.c @@ -105,7 +105,7 @@ vrf_lookup_by_name (char *name) unsigned int i; struct vrf *vrf; - for (i = 0; i < vector_max (vrf_vector); i++) + for (i = 0; i < vector_active (vrf_vector); i++) if ((vrf = vector_slot (vrf_vector, i)) != NULL) if (vrf->name && name && strcmp (vrf->name, name) == 0) return vrf; |