diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2018-09-08 22:31:43 +0200 | 
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2020-04-16 12:53:00 +0200 | 
| commit | 612c2c15d86e0e5c7e35f1a9a1491f90f365b93c (patch) | |
| tree | 5fd4cb67296f7748d26a420ad6357615dcd3b382 /lib/keychain.c | |
| parent | 249a771b63505b24d2a8c05158d7692384811533 (diff) | |
*: remove second parameter on install_node()
There is really no reason to not put this in the cmd_node.
And while we're add it, rename from pointless ".func" to ".config_write".
[v2: fix forgotten ldpd config_write]
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/keychain.c')
| -rw-r--r-- | lib/keychain.c | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/keychain.c b/lib/keychain.c index c66c1de077..bbe2070b1d 100644 --- a/lib/keychain.c +++ b/lib/keychain.c @@ -959,9 +959,11 @@ DEFUN (no_send_lifetime,  	return CMD_SUCCESS;  } +static int keychain_config_write(struct vty *vty);  static struct cmd_node keychain_node = {  	.node = KEYCHAIN_NODE,  	.prompt = "%s(config-keychain)# ", +	.config_write = keychain_config_write,  };  static struct cmd_node keychain_key_node = { @@ -1046,8 +1048,8 @@ void keychain_init(void)  {  	keychain_list = list_new(); -	install_node(&keychain_node, keychain_config_write); -	install_node(&keychain_key_node, NULL); +	install_node(&keychain_node); +	install_node(&keychain_key_node);  	install_default(KEYCHAIN_NODE);  	install_default(KEYCHAIN_KEY_NODE);  | 
