summaryrefslogtreecommitdiff
path: root/ripd/rip_debug.c
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 /ripd/rip_debug.c
parent4c749d99dcdc7f0d811d0bbd2858b87f41e4feba (diff)
*: 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 'ripd/rip_debug.c')
-rw-r--r--ripd/rip_debug.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ripd/rip_debug.c b/ripd/rip_debug.c
index 3356d99c2a..fe6b534c9d 100644
--- a/ripd/rip_debug.c
+++ b/ripd/rip_debug.c
@@ -173,9 +173,11 @@ DEFUN (no_debug_rip_zebra,
}
/* Debug node. */
-static struct cmd_node debug_node = {DEBUG_NODE,
- "", /* Debug node has no interface. */
- 1};
+static struct cmd_node debug_node = {
+ .node = DEBUG_NODE,
+ .prompt = "",
+ .vtysh = 1,
+};
static int config_write_debug(struct vty *vty)
{