summaryrefslogtreecommitdiffstats
path: root/ripngd
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 /ripngd
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 'ripngd')
-rw-r--r--ripngd/ripng_debug.c5
-rw-r--r--ripngd/ripng_interface.c4
-rw-r--r--ripngd/ripngd.c4
3 files changed, 9 insertions, 4 deletions
diff --git a/ripngd/ripng_debug.c b/ripngd/ripng_debug.c
index fe63d8fde..fe4ec256b 100644
--- a/ripngd/ripng_debug.c
+++ b/ripngd/ripng_debug.c
@@ -176,8 +176,9 @@ DEFUN (no_debug_ripng_zebra,
/* Debug node. */
static struct cmd_node debug_node = {
- DEBUG_NODE, "", /* Debug node has no interface. */
- 1 /* VTYSH */
+ .node = DEBUG_NODE,
+ .prompt = "",
+ .vtysh = 1,
};
static int config_write_debug(struct vty *vty)
diff --git a/ripngd/ripng_interface.c b/ripngd/ripng_interface.c
index 25d9ed2b9..d322a6ddb 100644
--- a/ripngd/ripng_interface.c
+++ b/ripngd/ripng_interface.c
@@ -956,7 +956,9 @@ static int interface_config_write(struct vty *vty)
/* ripngd's interface node. */
static struct cmd_node interface_node = {
- INTERFACE_NODE, "%s(config-if)# ", 1 /* VTYSH */
+ .node = INTERFACE_NODE,
+ .prompt = "%s(config-if)# ",
+ .vtysh = 1,
};
/* Initialization of interface. */
diff --git a/ripngd/ripngd.c b/ripngd/ripngd.c
index 1ea006abd..12f8b268f 100644
--- a/ripngd/ripngd.c
+++ b/ripngd/ripngd.c
@@ -2436,7 +2436,9 @@ static int ripng_config_write(struct vty *vty)
/* RIPng node structure. */
static struct cmd_node cmd_ripng_node = {
- RIPNG_NODE, "%s(config-router)# ", 1,
+ .node = RIPNG_NODE,
+ .prompt = "%s(config-router)# ",
+ .vtysh = 1,
};
static void ripng_distribute_update(struct distribute_ctx *ctx,