summaryrefslogtreecommitdiffstats
path: root/vtysh
diff options
context:
space:
mode:
authorpaul <paul>2005-03-14 21:19:01 +0100
committerpaul <paul>2005-03-14 21:19:01 +0100
commit55468c86040081320f557b696e509b76ddfd6c83 (patch)
tree3ee726f155f8776d4a220997681d14c0b09addd0 /vtysh
parent2005-03-14 Paul Jakma <paul.jakma@sun.com> (diff)
downloadfrr-55468c86040081320f557b696e509b76ddfd6c83.tar.xz
frr-55468c86040081320f557b696e509b76ddfd6c83.zip
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 'vtysh')
-rw-r--r--vtysh/vtysh.c4
-rw-r--r--vtysh/vtysh_config.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/vtysh/vtysh.c b/vtysh/vtysh.c
index fb41b0d14..5df562ca8 100644
--- a/vtysh/vtysh.c
+++ b/vtysh/vtysh.c
@@ -587,7 +587,7 @@ vtysh_rl_describe (void)
/* Get width of command string. */
width = 0;
- for (i = 0; i < vector_max (describe); i++)
+ for (i = 0; i < vector_active (describe); i++)
if ((desc = vector_slot (describe, i)) != NULL)
{
int len;
@@ -603,7 +603,7 @@ vtysh_rl_describe (void)
width = len;
}
- for (i = 0; i < vector_max (describe); i++)
+ for (i = 0; i < vector_active (describe); i++)
if ((desc = vector_slot (describe, i)) != NULL)
{
if (desc->cmd[0] == '\0')
diff --git a/vtysh/vtysh_config.c b/vtysh/vtysh_config.c
index 14efa4861..fe8d52fb7 100644
--- a/vtysh/vtysh_config.c
+++ b/vtysh/vtysh_config.c
@@ -309,7 +309,7 @@ vtysh_config_dump (FILE *fp)
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 @@ vtysh_config_dump (FILE *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_delete (master);