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.
diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c
index 14efa48..fe8d52f 100644
--- a/vtysh/vtysh_config.c
+++ b/vtysh/vtysh_config.c
@@ -309,7 +309,7 @@
fprintf (fp, "!\n");
fflush (fp);
- for (i = 0; i < vector_max (configvec); i++)
+ for (i = 0; i < vector_active (configvec); i++)
if ((master = vector_slot (configvec, i)) != NULL)
{
LIST_LOOP (master, config, nn)
@@ -335,7 +335,7 @@
}
}
- for (i = 0; i < vector_max (configvec); i++)
+ for (i = 0; i < vector_active (configvec); i++)
if ((master = vector_slot (configvec, i)) != NULL)
{
list_delete (master);