diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2018-09-08 21:46:23 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2020-04-16 12:53:00 +0200 |
| commit | 62b346eefa1b9e09c9372f5b6376e1bca4162015 (patch) | |
| tree | 2e3bc16d1d0765ab033c7ffd24ca58b3b5d35168 /lib/vrf.c | |
| parent | 4c749d99dcdc7f0d811d0bbd2858b87f41e4feba (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/vrf.c')
| -rw-r--r-- | lib/vrf.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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) { |
