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/plist.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/plist.c')
| -rw-r--r-- | lib/plist.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/plist.c b/lib/plist.c index b7a020c6f7..15a79a1cdc 100644 --- a/lib/plist.c +++ b/lib/plist.c @@ -2045,9 +2045,11 @@ static void prefix_list_reset_afi(afi_t afi, int orf) /* Prefix-list node. */ -static struct cmd_node prefix_node = {PREFIX_NODE, - "", /* Prefix list has no interface. */ - 1}; +static struct cmd_node prefix_node = { + .node = PREFIX_NODE, + .prompt = "", + .vtysh = 1, +}; static int config_write_prefix_ipv4(struct vty *vty) { @@ -2109,8 +2111,10 @@ static void prefix_list_init_ipv4(void) /* Prefix-list node. */ static struct cmd_node prefix_ipv6_node = { - PREFIX_IPV6_NODE, "", /* Prefix list has no interface. */ - 1}; + .node = PREFIX_IPV6_NODE, + .prompt = "", + .vtysh = 1, +}; static int config_write_prefix_ipv6(struct vty *vty) { |
