]> git.proxmox.com Git - mirror_frr.git/blobdiff - ripngd/ripng_offset.c
2005-04-07 Paul Jakma <paul.jakma@sun.com>
[mirror_frr.git] / ripngd / ripng_offset.c
index 46e23f0b61d9cd673afc40e148c0bd542cdeb77b..31d78ba8e964b1c0853bf4077ff223369a78727b 100644 (file)
@@ -81,9 +81,9 @@ struct ripng_offset_list *
 ripng_offset_list_lookup (const char *ifname)
 {
   struct ripng_offset_list *offset;
-  struct listnode *nn;
+  struct listnode *node, *nnode;
 
-  LIST_LOOP (ripng_offset_list_master, offset, nn)
+  for (ALL_LIST_ELEMENTS (ripng_offset_list_master, node, nnode, offset))
     {
       if (strcmp_safe (offset->ifname, ifname) == 0)
        return offset;
@@ -382,10 +382,10 @@ ripng_offset_clean ()
 int
 config_write_ripng_offset_list (struct vty *vty)
 {
-  struct listnode *nn;
+  struct listnode *node, *nnode;
   struct ripng_offset_list *offset;
 
-  LIST_LOOP (ripng_offset_list_master, offset, nn)
+  for (ALL_LIST_ELEMENTS (ripng_offset_list_master, node, nnode, offset))
     {
       if (! offset->ifname)
        {