]> git.puffer.fish Git - mirror/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>
Sat, 10 Sep 2011 12:40:23 +0000 (16:40 +0400)
ospfd/ospf_vty.c

index adc822a7021cb052ea5ce9a9d3a484c300c90edd..955a822758b585282660a70cfbf5ee3b0089f64d 100644 (file)
@@ -7896,9 +7896,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. */