summaryrefslogtreecommitdiff
path: root/ripd/rip_interface.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_interface.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_interface.c')
-rw-r--r--ripd/rip_interface.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ripd/rip_interface.c b/ripd/rip_interface.c
index 10e23787e6..87899e468d 100644
--- a/ripd/rip_interface.c
+++ b/ripd/rip_interface.c
@@ -1193,9 +1193,11 @@ int rip_show_network_config(struct vty *vty, struct rip *rip)
return 0;
}
+static int rip_interface_config_write(struct vty *vty);
static struct cmd_node interface_node = {
.node = INTERFACE_NODE,
.prompt = "%s(config-if)# ",
+ .config_write = rip_interface_config_write,
};
void rip_interface_sync(struct interface *ifp)
@@ -1237,7 +1239,7 @@ void rip_if_init(void)
hook_register_prio(if_del, 0, rip_interface_delete_hook);
/* Install interface node. */
- install_node(&interface_node, rip_interface_config_write);
+ install_node(&interface_node);
if_cmd_init();
if_zapi_callbacks(rip_ifp_create, rip_ifp_up,
rip_ifp_down, rip_ifp_destroy);