]> git.puffer.fish Git - matthieu/frr.git/commitdiff
2004-10-07 Greg Troxel <gdt@claude.ir.bbn.com>
authorgdt <gdt>
Thu, 7 Oct 2004 19:38:20 +0000 (19:38 +0000)
committergdt <gdt>
Thu, 7 Oct 2004 19:38:20 +0000 (19:38 +0000)
        * ospf_apiserver.c (ospf_apiserver_unregister_opaque_type): Don't
        use of variable names 'node' and 'nextnode' to avoid possible
        conflict with list macros.  Move variable declaration inside for
        loop after a statement to top of function.

ospfd/ChangeLog
ospfd/ospf_apiserver.c

index 20e9f409ff5f107f97e4c753df3eaefe3c8a3149..f71479e860aca4f43d5c7589ead4d22bb2174fde 100644 (file)
@@ -1,3 +1,10 @@
+2004-10-07  Greg Troxel  <gdt@claude.ir.bbn.com>
+
+       * ospf_apiserver.c (ospf_apiserver_unregister_opaque_type): Don't
+       use of variable names 'node' and 'nextnode' to avoid possible
+       conflict with list macros.  Move variable declaration inside for
+       loop after a statement to top of function.
+
 2004-10-07 Paul Jakma <paul@dishone.st>
 
        * ospf_snmp.c: Missed list typedef update
index 9a2a65d1a4714652fe014c1cd6c7d4ddd52d9cbf..96fb917939449d530150ce75d247159c856be55e 100644 (file)
@@ -962,13 +962,14 @@ int
 ospf_apiserver_unregister_opaque_type (struct ospf_apiserver *apiserv,
                                       u_char lsa_type, u_char opaque_type)
 {
-  struct listnode *node, *nextnode;
+  struct listnode *n1, *n1_next;
+  struct registered_opaque_type *regtype;
 
-  for (node = listhead (apiserv->opaque_types); node; node = nextnode)
+  for (n1 = listhead (apiserv->opaque_types); n1; n1 = n1_next)
     {
-      nextnode = node->next;
+      n1_next = n1->next;
       
-      struct registered_opaque_type *regtype = node->data;
+      regtype = (struct registered_opaque_type *) getdata(n1);
 
       /* Check if we really registered this opaque type */
       if (regtype->lsa_type == lsa_type &&