From 55468c86040081320f557b696e509b76ddfd6c83 Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 14 Mar 2005 20:19:01 +0000 Subject: 2005-03-14 Paul Jakma * (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. --- lib/routemap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/routemap.c') diff --git a/lib/routemap.c b/lib/routemap.c index cc63e3a1..2906a52e 100644 --- a/lib/routemap.c +++ b/lib/routemap.c @@ -429,7 +429,7 @@ route_map_lookup_match (const char *name) unsigned int i; struct route_map_rule_cmd *rule; - for (i = 0; i < vector_max (route_match_vec); i++) + for (i = 0; i < vector_active (route_match_vec); i++) if ((rule = vector_slot (route_match_vec, i)) != NULL) if (strcmp (rule->str, name) == 0) return rule; @@ -443,7 +443,7 @@ route_map_lookup_set (const char *name) unsigned int i; struct route_map_rule_cmd *rule; - for (i = 0; i < vector_max (route_set_vec); i++) + for (i = 0; i < vector_active (route_set_vec); i++) if ((rule = vector_slot (route_set_vec, i)) != NULL) if (strcmp (rule->str, name) == 0) return rule; -- cgit v1.2.3