summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6d.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2018-09-08 22:31:43 +0200
committerDavid Lamparter <equinox@diac24.net>2020-04-16 12:53:00 +0200
commit612c2c15d86e0e5c7e35f1a9a1491f90f365b93c (patch)
tree5fd4cb67296f7748d26a420ad6357615dcd3b382 /ospf6d/ospf6d.c
parent*: remove cmd_node->vtysh (diff)
downloadfrr-612c2c15d86e0e5c7e35f1a9a1491f90f365b93c.tar.xz
frr-612c2c15d86e0e5c7e35f1a9a1491f90f365b93c.zip
*: remove second parameter on install_node()
There is really no reason to not put this in the cmd_node. And while we're add it, rename from pointless ".func" to ".config_write". [v2: fix forgotten ldpd config_write] Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'ospf6d/ospf6d.c')
-rw-r--r--ospf6d/ospf6d.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ospf6d/ospf6d.c b/ospf6d/ospf6d.c
index 8e5406642..efbb332b6 100644
--- a/ospf6d/ospf6d.c
+++ b/ospf6d/ospf6d.c
@@ -69,9 +69,11 @@ struct route_node *route_prev(struct route_node *node)
return prev;
}
+static int config_write_ospf6_debug(struct vty *vty);
static struct cmd_node debug_node = {
.node = DEBUG_NODE,
.prompt = "",
+ .config_write = config_write_ospf6_debug,
};
static int config_write_ospf6_debug(struct vty *vty)
@@ -1217,7 +1219,7 @@ void ospf6_init(void)
prefix_list_delete_hook(ospf6_plist_del);
ospf6_bfd_init();
- install_node(&debug_node, config_write_ospf6_debug);
+ install_node(&debug_node);
install_element_ospf6_debug_message();
install_element_ospf6_debug_lsa();