diff options
author | hasso <hasso> | 2005-09-28 18:45:54 +0000 |
---|---|---|
committer | hasso <hasso> | 2005-09-28 18:45:54 +0000 |
commit | 3fdb2dd9dd8b4ab3517896092dd1b677d191adf9 (patch) | |
tree | 2f2bdff0a3797517100d0f1319cd3e46bb00f53f /isisd/isis_events.c | |
parent | d3d7474ba98f01e6d9994ff48c0b3a4331a8ef2a (diff) |
* *.c: Massive cleanup of lists loops. Stop abusing ALL_LIST_ELEMENTS.
Replace XMALLOC + memset with XCALLOC. Fix some indentation issues.
The only really significant change is simplified isis_delete_adj
function in isis_adjacency.c.
Diffstat (limited to 'isisd/isis_events.c')
-rw-r--r-- | isisd/isis_events.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/isisd/isis_events.c b/isisd/isis_events.c index a8e60d6d..07736fd7 100644 --- a/isisd/isis_events.c +++ b/isisd/isis_events.c @@ -88,7 +88,7 @@ isis_event_circuit_state_change (struct isis_circuit *circuit, int up) void isis_event_system_type_change (struct isis_area *area, int newtype) { - struct listnode *node, *nnode; + struct listnode *node; struct isis_circuit *circuit; if (isis->debugs & DEBUG_EVENTS) @@ -125,7 +125,7 @@ isis_event_system_type_change (struct isis_area *area, int newtype) } area->is_type = newtype; - for (ALL_LIST_ELEMENTS (area->circuit_list, node, nnode, circuit)) + for (ALL_LIST_ELEMENTS_RO (area->circuit_list, node, circuit)) isis_event_circuit_type_change (circuit, newtype); spftree_area_init (area); |