summaryrefslogtreecommitdiff
path: root/lib/keychain.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/keychain.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/keychain.c')
-rw-r--r--lib/keychain.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/keychain.c b/lib/keychain.c
index ea512a2699..c0af630c4b 100644
--- a/lib/keychain.c
+++ b/lib/keychain.c
@@ -959,11 +959,17 @@ DEFUN (no_send_lifetime,
return CMD_SUCCESS;
}
-static struct cmd_node keychain_node = {KEYCHAIN_NODE, "%s(config-keychain)# ",
- 1};
-
-static struct cmd_node keychain_key_node = {KEYCHAIN_KEY_NODE,
- "%s(config-keychain-key)# ", 1};
+static struct cmd_node keychain_node = {
+ .node = KEYCHAIN_NODE,
+ .prompt = "%s(config-keychain)# ",
+ .vtysh = 1,
+};
+
+static struct cmd_node keychain_key_node = {
+ .node = KEYCHAIN_KEY_NODE,
+ .prompt = "%s(config-keychain-key)# ",
+ .vtysh = 1,
+};
static int keychain_strftime(char *buf, int bufsiz, time_t *time)
{