diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2018-09-08 21:46:23 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2020-04-16 12:53:00 +0200 |
commit | 62b346eefa1b9e09c9372f5b6376e1bca4162015 (patch) | |
tree | 2e3bc16d1d0765ab033c7ffd24ca58b3b5d35168 /pimd | |
parent | Merge pull request #6237 from ton31337/fix/show_hostname_in_bgp (diff) | |
download | frr-62b346eefa1b9e09c9372f5b6376e1bca4162015.tar.xz frr-62b346eefa1b9e09c9372f5b6376e1bca4162015.zip |
*: clean up cmd_node initializers
... and use named assignments everywhere (so I can change the struct.)
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'pimd')
-rw-r--r-- | pimd/pim_cmd.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index d6c500cdb..248fb9543 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -70,10 +70,16 @@ #endif static struct cmd_node interface_node = { - INTERFACE_NODE, "%s(config-if)# ", 1 /* vtysh ? yes */ + .node = INTERFACE_NODE, + .prompt = "%s(config-if)# ", + .vtysh = 1, }; -static struct cmd_node debug_node = {DEBUG_NODE, "", 1}; +static struct cmd_node debug_node = { + .node = DEBUG_NODE, + .prompt = "", + .vtysh = 1, +}; static struct vrf *pim_cmd_lookup_vrf(struct vty *vty, struct cmd_token *argv[], const int argc, int *idx) |