summaryrefslogtreecommitdiffstats
path: root/bfdd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2018-09-08 21:46:23 +0200
committerDavid Lamparter <equinox@diac24.net>2020-04-16 12:53:00 +0200
commit62b346eefa1b9e09c9372f5b6376e1bca4162015 (patch)
tree2e3bc16d1d0765ab033c7ffd24ca58b3b5d35168 /bfdd
parentMerge pull request #6237 from ton31337/fix/show_hostname_in_bgp (diff)
downloadfrr-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 'bfdd')
-rw-r--r--bfdd/bfdd_vty.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/bfdd/bfdd_vty.c b/bfdd/bfdd_vty.c
index f539c6d27..fddefb750 100644
--- a/bfdd/bfdd_vty.c
+++ b/bfdd/bfdd_vty.c
@@ -886,15 +886,15 @@ DEFUN_NOSH(show_debugging_bfd,
}
struct cmd_node bfd_node = {
- BFD_NODE,
- "%s(config-bfd)# ",
- 1,
+ .node = BFD_NODE,
+ .prompt = "%s(config-bfd)# ",
+ .vtysh = 1,
};
struct cmd_node bfd_peer_node = {
- BFD_PEER_NODE,
- "%s(config-bfd-peer)# ",
- 1,
+ .node = BFD_PEER_NODE,
+ .prompt = "%s(config-bfd-peer)# ",
+ .vtysh = 1,
};
static int bfdd_write_config(struct vty *vty)