summaryrefslogtreecommitdiff
path: root/lib/vty.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 /lib/vty.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 'lib/vty.c')
-rw-r--r--lib/vty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 8056236de9..57350ea89f 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -2990,7 +2990,9 @@ static int vty_config_write(struct vty *vty)
}
struct cmd_node vty_node = {
- VTY_NODE, "%s(config-line)# ", 1,
+ .node = VTY_NODE,
+ .prompt = "%s(config-line)# ",
+ .vtysh = 1,
};
/* Reset all VTY status. */