]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Small changes to reduce number of warnings.
authorOndrej Filip <feela@network.cz>
Mon, 14 Feb 2005 11:54:16 +0000 (11:54 +0000)
committerOndrej Filip <feela@network.cz>
Mon, 14 Feb 2005 11:54:16 +0000 (11:54 +0000)
proto/ospf/config.Y
proto/ospf/lsupd.c
proto/ospf/neighbor.c
proto/ospf/ospf.c
proto/ospf/packet.c

index 91cd5b856fb8f4a159408dbeb0544f7a1c88c737..5f9f12ce6806372b963aee94d86cfadcb2c271b5 100644 (file)
@@ -100,7 +100,7 @@ ospf_vlink_item:
  | AUTHENTICATION NONE { OSPF_PATT->autype = OSPF_AUTH_NONE ; }
  | AUTHENTICATION SIMPLE { OSPF_PATT->autype = OSPF_AUTH_SIMPLE ; }
  | AUTHENTICATION CRYPTOGRAPHIC { OSPF_PATT->autype = OSPF_AUTH_CRYPT ; }
- | password_list {OSPF_PATT->passwords = $1; }
+ | password_list {OSPF_PATT->passwords = (list *) $1; }
  ;
 
 ospf_vlink_start: VIRTUAL LINK idval
@@ -139,7 +139,7 @@ ospf_iface_item:
  | AUTHENTICATION NONE { OSPF_PATT->autype = OSPF_AUTH_NONE ; }
  | AUTHENTICATION SIMPLE { OSPF_PATT->autype = OSPF_AUTH_SIMPLE ; }
  | AUTHENTICATION CRYPTOGRAPHIC { OSPF_PATT->autype = OSPF_AUTH_CRYPT ; }
- | password_list {OSPF_PATT->passwords = $1; }
+ | password_list {OSPF_PATT->passwords = (list *) $1; }
  ;
 
 pref_list:
index c619442472049c9394e24ce0828fd559bcc3760d..d1881445b8ae659d64bf2e47240162780c20abad 100644 (file)
@@ -33,7 +33,7 @@ ospf_lsupd_flood(struct ospf_neighbor *n, struct ospf_lsa_header *hn,
   int ret, retval = 0;
 
   /* pg 148 */
-  WALK_LIST(NODE ifa, po->iface_list)
+  WALK_LIST(ifa, po->iface_list)
   {
     if (ifa->stub)
       continue;
@@ -51,7 +51,7 @@ ospf_lsupd_flood(struct ospf_neighbor *n, struct ospf_lsa_header *hn,
         continue;
     }
     ret = 0;
-    WALK_LIST(NODE nn, ifa->neigh_list)
+    WALK_LIST(nn, ifa->neigh_list)
     {
       if (nn->state < NEIGHBOR_EXCHANGE)
        continue;
@@ -456,8 +456,8 @@ ospf_lsupd_receive(struct ospf_lsupd_packet *ps,
       /* Remove old from all ret lists */
       /* pg 144 (5c) */
       if (lsadb)
-       WALK_LIST(NODE ift, po->iface_list)
-         WALK_LIST(NODE ntmp, ift->neigh_list)
+       WALK_LIST(ift, po->iface_list)
+         WALK_LIST(ntmp, ift->neigh_list)
       {
        struct top_hash_entry *en;
        if (ntmp->state > NEIGHBOR_EXSTART)
index 0339ec2dadd657b6021aa7d3b20f9024986a57fa..58c0762b5bd8b362f4fa4b62b8429cbbf9e83b53 100644 (file)
@@ -532,7 +532,7 @@ struct ospf_area *
 ospf_find_area(struct proto_ospf *po, u32 aid)
 {
   struct ospf_area *oa;
-  WALK_LIST(NODE oa, po->area_list)
+  WALK_LIST(oa, po->area_list)
     if (((struct ospf_area *) oa)->areaid == aid)
     return oa;
   return NULL;
@@ -630,7 +630,7 @@ rxmt_timer_hook(timer * timer)
       init_list(&uplist);
       upslab = sl_new(n->pool, sizeof(struct l_lsr_head));
 
-      WALK_SLIST(SNODE en, n->lsrtl)
+      WALK_SLIST(en, n->lsrtl)
       {
        if ((SNODE en)->next == (SNODE en))
          bug("RTList is cycled");
index c753503b52c07bd546aad2028ad71d3442be134a..ce01a37b4a7a4a66edd1d4558cc9718385738de5 100644 (file)
@@ -776,8 +776,8 @@ ospf_reconfigure(struct proto *p, struct proto_config *c)
       }
     }
 
-    NODE ac1 = (NODE(ac1))->next;
-    NODE ac2 = (NODE(ac2))->next;
+    ac1 = (struct ospf_area_config *)(NODE(ac1))->next;
+    ac2 = (struct ospf_area_config *)(NODE(ac2))->next;
   }
 
   if (((NODE(ac1))->next) != ((NODE(ac2))->next))
index 6a334d0ddcec8175f5aa747908278cf71a78ef4a..ac6a06f20a4fddb8b0d2984064f43232df76e988 100644 (file)
@@ -373,7 +373,7 @@ ospf_send_to_agt(sock * sk, struct ospf_iface *ifa, u8 state)
 {
   struct ospf_neighbor *n;
 
-  WALK_LIST(NODE n, ifa->neigh_list) if (n->state >= state)
+  WALK_LIST(n, ifa->neigh_list) if (n->state >= state)
     ospf_send_to(sk, n->ip, ifa);
 }