From 52dc7ee65f8d887b0730abc0a5d44d27fc6ecafd Mon Sep 17 00:00:00 2001 From: hasso Date: Thu, 23 Sep 2004 19:18:23 +0000 Subject: Remove usage of evil list and listnode typedefs. --- ospfd/ospf_ism.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'ospfd/ospf_ism.c') diff --git a/ospfd/ospf_ism.c b/ospfd/ospf_ism.c index 5f4d5461..7fa8b460 100644 --- a/ospfd/ospf_ism.c +++ b/ospfd/ospf_ism.c @@ -46,9 +46,9 @@ /* elect DR and BDR. Refer to RFC2319 section 9.4 */ struct ospf_neighbor * -ospf_dr_election_sub (list routers) +ospf_dr_election_sub (struct list *routers) { - listnode node; + struct listnode *node; struct ospf_neighbor *nbr, *max = NULL; /* Choose highest router priority. @@ -73,10 +73,10 @@ ospf_dr_election_sub (list routers) } struct ospf_neighbor * -ospf_elect_dr (struct ospf_interface *oi, list el_list) +ospf_elect_dr (struct ospf_interface *oi, struct list *el_list) { - list dr_list; - listnode node; + struct list *dr_list; + struct listnode *node; struct ospf_neighbor *nbr, *dr = NULL, *bdr = NULL; dr_list = list_new (); @@ -116,10 +116,10 @@ ospf_elect_dr (struct ospf_interface *oi, list el_list) } struct ospf_neighbor * -ospf_elect_bdr (struct ospf_interface *oi, list el_list) +ospf_elect_bdr (struct ospf_interface *oi, struct list *el_list) { - list bdr_list, no_dr_list; - listnode node; + struct list *bdr_list, *no_dr_list; + struct listnode *node; struct ospf_neighbor *nbr, *bdr = NULL; bdr_list = list_new (); @@ -174,7 +174,7 @@ ospf_ism_state (struct ospf_interface *oi) } void -ospf_dr_eligible_routers (struct route_table *nbrs, list el_list) +ospf_dr_eligible_routers (struct route_table *nbrs, struct list *el_list) { struct route_node *rn; struct ospf_neighbor *nbr; @@ -213,7 +213,7 @@ ospf_dr_election (struct ospf_interface *oi) { struct in_addr old_dr, old_bdr; int old_state, new_state; - list el_list; + struct list *el_list; struct ospf_neighbor *dr, *bdr; /* backup current values. */ -- cgit v1.2.1