]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: use existing macro for consistency
authorDenis Ovsienko <infrastation@yandex.ru>
Sat, 10 Sep 2011 12:40:23 +0000 (16:40 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 27 Sep 2011 17:42:52 +0000 (21:42 +0400)
ospfd/ospf_vty.c

index 46e7ffa525b008fafda4cbb9803ef8f5bfcb5813..3c8df130ee805c0dd3b72bbc619f4b266ff7ad0a 100644 (file)
@@ -7902,9 +7902,9 @@ config_write_ospf_distribute (struct vty *vty, struct ospf *ospf)
     {
       /* distribute-list print. */
       for (type = 0; type < ZEBRA_ROUTE_MAX; type++)
-       if (ospf->dlist[type].name)
+       if (DISTRIBUTE_NAME (ospf, type))
          vty_out (vty, " distribute-list %s out %s%s", 
-                  ospf->dlist[type].name,
+                  DISTRIBUTE_NAME (ospf, type),
                   zebra_route_string(type), VTY_NEWLINE);
 
       /* default-information print. */