diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2018-09-08 22:31:43 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2020-04-16 12:53:00 +0200 |
commit | 612c2c15d86e0e5c7e35f1a9a1491f90f365b93c (patch) | |
tree | 5fd4cb67296f7748d26a420ad6357615dcd3b382 /lib/vty.c | |
parent | *: remove cmd_node->vtysh (diff) | |
download | frr-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 'lib/vty.c')
-rw-r--r-- | lib/vty.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2989,9 +2989,11 @@ static int vty_config_write(struct vty *vty) return CMD_SUCCESS; } +static int vty_config_write(struct vty *vty); struct cmd_node vty_node = { .node = VTY_NODE, .prompt = "%s(config-line)# ", + .config_write = vty_config_write, }; /* Reset all VTY status. */ @@ -3085,7 +3087,7 @@ void vty_init(struct thread_master *master_thread, bool do_command_logging) Vvty_serv_thread = vector_init(VECTOR_MIN_SIZE); /* Install bgp top node. */ - install_node(&vty_node, vty_config_write); + install_node(&vty_node); install_element(VIEW_NODE, &config_who_cmd); install_element(VIEW_NODE, &show_history_cmd); |