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 --- ospf6d/ospf6_interface.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ospf6d/ospf6_interface.c') diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index 93265afc43..a0dd396cc3 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -1944,7 +1944,9 @@ static int config_write_ospf6_interface(struct vty *vty) } static struct cmd_node interface_node = { - INTERFACE_NODE, "%s(config-if)# ", 1 /* VTYSH */ + .node = INTERFACE_NODE, + .prompt = "%s(config-if)# ", + .vtysh = 1, }; static int ospf6_ifp_create(struct interface *ifp) -- cgit v1.2.3