summaryrefslogtreecommitdiff
path: root/ripd/rip_debug.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 /ripd/rip_debug.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 'ripd/rip_debug.c')
-rw-r--r--ripd/rip_debug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ripd/rip_debug.c b/ripd/rip_debug.c
index 72cd0c62f1..676fc0cca4 100644
--- a/ripd/rip_debug.c
+++ b/ripd/rip_debug.c
@@ -172,10 +172,12 @@ DEFUN (no_debug_rip_zebra,
return CMD_SUCCESS;
}
+static int config_write_debug(struct vty *vty);
/* Debug node. */
static struct cmd_node debug_node = {
.node = DEBUG_NODE,
.prompt = "",
+ .config_write = config_write_debug,
};
static int config_write_debug(struct vty *vty)
@@ -211,7 +213,7 @@ void rip_debug_init(void)
rip_debug_packet = 0;
rip_debug_zebra = 0;
- install_node(&debug_node, config_write_debug);
+ install_node(&debug_node);
install_element(ENABLE_NODE, &show_debugging_rip_cmd);
install_element(ENABLE_NODE, &debug_rip_events_cmd);