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/northbound_cli.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/northbound_cli.c') diff --git a/lib/northbound_cli.c b/lib/northbound_cli.c index 17dc256281..9c001a3b08 100644 --- a/lib/northbound_cli.c +++ b/lib/northbound_cli.c @@ -1674,7 +1674,11 @@ static int nb_debug_config_write(struct vty *vty) } static struct debug_callbacks nb_dbg_cbs = {.debug_set_all = nb_debug_set_all}; -static struct cmd_node nb_debug_node = {NORTHBOUND_DEBUG_NODE, "", 1}; +static struct cmd_node nb_debug_node = { + .node = NORTHBOUND_DEBUG_NODE, + .prompt = "", + .vtysh = 1, +}; void nb_cli_install_default(int node) { -- cgit v1.2.3