summaryrefslogtreecommitdiff
path: root/ripd
diff options
context:
space:
mode:
authorpaul <paul>2005-03-14 20:19:01 +0000
committerpaul <paul>2005-03-14 20:19:01 +0000
commit55468c86040081320f557b696e509b76ddfd6c83 (patch)
tree3ee726f155f8776d4a220997681d14c0b09addd0 /ripd
parent909a215508fd42473fcbe4f5292a59404e5473af (diff)
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 'ripd')
-rw-r--r--ripd/rip_interface.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ripd/rip_interface.c b/ripd/rip_interface.c
index 68dcb01a..0a01d8b5 100644
--- a/ripd/rip_interface.c
+++ b/ripd/rip_interface.c
@@ -986,7 +986,7 @@ rip_enable_if_lookup (const char *ifname)
unsigned int i;
char *str;
- for (i = 0; i < vector_max (rip_enable_interface); i++)
+ for (i = 0; i < vector_active (rip_enable_interface); i++)
if ((str = vector_slot (rip_enable_interface, i)) != NULL)
if (strcmp (str, ifname) == 0)
return i;
@@ -1253,7 +1253,7 @@ rip_clean_network ()
}
/* rip_enable_interface. */
- for (i = 0; i < vector_max (rip_enable_interface); i++)
+ for (i = 0; i < vector_active (rip_enable_interface); i++)
if ((str = vector_slot (rip_enable_interface, i)) != NULL)
{
free (str);
@@ -1268,7 +1268,7 @@ rip_passive_nondefault_lookup (const char *ifname)
unsigned int i;
char *str;
- for (i = 0; i < vector_max (Vrip_passive_nondefault); i++)
+ for (i = 0; i < vector_active (Vrip_passive_nondefault); i++)
if ((str = vector_slot (Vrip_passive_nondefault, i)) != NULL)
if (strcmp (str, ifname) == 0)
return i;
@@ -1342,7 +1342,7 @@ rip_passive_nondefault_clean ()
unsigned int i;
char *str;
- for (i = 0; i < vector_max (Vrip_passive_nondefault); i++)
+ for (i = 0; i < vector_active (Vrip_passive_nondefault); i++)
if ((str = vector_slot (Vrip_passive_nondefault, i)) != NULL)
{
free (str);
@@ -2123,7 +2123,7 @@ config_write_rip_network (struct vty *vty, int config_mode)
VTY_NEWLINE);
/* Interface name RIP enable statement. */
- for (i = 0; i < vector_max (rip_enable_interface); i++)
+ for (i = 0; i < vector_active (rip_enable_interface); i++)
if ((ifname = vector_slot (rip_enable_interface, i)) != NULL)
vty_out (vty, "%s%s%s",
config_mode ? " network " : " ",
@@ -2142,7 +2142,7 @@ config_write_rip_network (struct vty *vty, int config_mode)
if (config_mode) {
if (passive_default)
vty_out (vty, " passive-interface default%s", VTY_NEWLINE);
- for (i = 0; i < vector_max (Vrip_passive_nondefault); i++)
+ for (i = 0; i < vector_active (Vrip_passive_nondefault); i++)
if ((ifname = vector_slot (Vrip_passive_nondefault, i)) != NULL)
vty_out (vty, " %spassive-interface %s%s",
(passive_default ? "no " : ""), ifname, VTY_NEWLINE);