summaryrefslogtreecommitdiff
path: root/lib/routemap.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 /lib/routemap.c
parent249a771b63505b24d2a8c05158d7692384811533 (diff)
*: 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 'lib/routemap.c')
-rw-r--r--lib/routemap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/routemap.c b/lib/routemap.c
index 41057c8704..2208a69f94 100644
--- a/lib/routemap.c
+++ b/lib/routemap.c
@@ -3015,9 +3015,11 @@ DEFUN (no_debug_rmap,
}
/* Debug node. */
+static int rmap_config_write_debug(struct vty *vty);
static struct cmd_node rmap_debug_node = {
.node = RMAP_DEBUG_NODE,
.prompt = "",
+ .config_write = rmap_config_write_debug,
};
/* Configuration write function. */
@@ -3245,7 +3247,7 @@ void route_map_init(void)
route_map_cli_init();
/* Install route map top node. */
- install_node(&rmap_debug_node, rmap_config_write_debug);
+ install_node(&rmap_debug_node);
/* Install route map commands. */
install_element(CONFIG_NODE, &debug_rmap_cmd);