From 62b346eefa1b9e09c9372f5b6376e1bca4162015 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sat, 8 Sep 2018 21:46:23 +0200 Subject: *: clean up cmd_node initializers ... and use named assignments everywhere (so I can change the struct.) Signed-off-by: David Lamparter --- lib/vrf.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lib/vrf.c') diff --git a/lib/vrf.c b/lib/vrf.c index f642aa5609..52923a5cd0 100644 --- a/lib/vrf.c +++ b/lib/vrf.c @@ -758,7 +758,11 @@ DEFUN (no_vrf, } -static struct cmd_node vrf_node = {VRF_NODE, "%s(config-vrf)# ", 1}; +static struct cmd_node vrf_node = { + .node = VRF_NODE, + .prompt = "%s(config-vrf)# ", + .vtysh = 1, +}; DEFUN_NOSH (vrf_netns, vrf_netns_cmd, @@ -848,7 +852,11 @@ static int vrf_write_host(struct vty *vty) return 1; } -static struct cmd_node vrf_debug_node = {VRF_DEBUG_NODE, "", 1}; +static struct cmd_node vrf_debug_node = { + .node = VRF_DEBUG_NODE, + .prompt = "", + .vtysh = 1, +}; void vrf_install_commands(void) { -- cgit v1.2.3