summaryrefslogtreecommitdiff
path: root/ospfd/ospf_apiserver.c
diff options
context:
space:
mode:
authorgdt <gdt>2004-10-07 19:38:20 +0000
committergdt <gdt>2004-10-07 19:38:20 +0000
commit54ade99658ea95bf9207b5547fe6a7b97e64c97a (patch)
tree7e800471cc271728b36ab3fccaf86c13c27c3a16 /ospfd/ospf_apiserver.c
parent6ad96ea16ee54578391bb4ca88d047ac9d3654fc (diff)
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.
Diffstat (limited to 'ospfd/ospf_apiserver.c')
-rw-r--r--ospfd/ospf_apiserver.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/ospfd/ospf_apiserver.c b/ospfd/ospf_apiserver.c
index 9a2a65d1..96fb9179 100644
--- a/ospfd/ospf_apiserver.c
+++ b/ospfd/ospf_apiserver.c
@@ -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 &&