summaryrefslogtreecommitdiff
path: root/isisd
diff options
context:
space:
mode:
authorpaul <paul>2005-05-25 12:21:13 +0000
committerpaul <paul>2005-05-25 12:21:13 +0000
commit92c9f2229fea8fdef31a701d36d7df91f3e9905d (patch)
tree66c1c5df86c8d7bf1ef05e39505898eaf3919f98 /isisd
parent8176c19f6104c6fa6bee88618b41719938fb42cc (diff)
2005-05-25 Paul Jakma <paul@dishone.st>
* isisd.c: (show_isis_generated_topology) change to _RO version of list macro. remove the extra listnode variable. one of the macros had had incorrect number of arguments.
Diffstat (limited to 'isisd')
-rw-r--r--isisd/ChangeLog6
-rw-r--r--isisd/isisd.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/isisd/ChangeLog b/isisd/ChangeLog
index d5c8ec52..5f8d3f44 100644
--- a/isisd/ChangeLog
+++ b/isisd/ChangeLog
@@ -1,3 +1,9 @@
+2005-05-25 Paul Jakma <paul@dishone.st>
+
+ * isisd.c: (show_isis_generated_topology) change to _RO version
+ of list macro. remove the extra listnode variable. one of the
+ macros had had incorrect number of arguments.
+
2005-05-03 Paul Jakma <paul@dishone.st>
* (general) More cleaning up of stream abuse, isisd should be
diff --git a/isisd/isisd.c b/isisd/isisd.c
index aeebee68..5ab1f272 100644
--- a/isisd/isisd.c
+++ b/isisd/isisd.c
@@ -1593,16 +1593,16 @@ DEFUN (show_isis_generated_topology,
"CLNS neighbor adjacencies\n")
{
struct isis_area *area;
- struct listnode *node, *nnode;
+ struct listnode *node;
struct listnode *node2;
struct arc *arc;
- for (ALL_LIST_ELEMENTS (isis->area_list, node, nnode, area))
+ for (ALL_LIST_ELEMENTS_RO (isis->area_list, node, area))
{
if (area->topology)
{
vty_out (vty, "Topology for isis area:%s%s", area->area_tag,
VTY_NEWLINE);
- for (ALL_LIST_ELEMENTS (area->topology, node2, arc))
+ for (ALL_LIST_ELEMENTS_RO (area->topology, node2, arc))
{
vty_out (vty, "a %ld %ld %ld%s", arc->from_node, arc->to_node,
arc->distance, VTY_NEWLINE);