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 --- zebra/zebra_pw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'zebra/zebra_pw.c') diff --git a/zebra/zebra_pw.c b/zebra/zebra_pw.c index 610a052c31..d16082c515 100644 --- a/zebra/zebra_pw.c +++ b/zebra/zebra_pw.c @@ -548,7 +548,9 @@ static int zebra_pw_config(struct vty *vty) } static struct cmd_node pw_node = { - PW_NODE, "%s(config-pw)# ", 1, + .node = PW_NODE, + .prompt = "%s(config-pw)# ", + .vtysh = 1, }; void zebra_pw_vty_init(void) -- cgit v1.2.3