diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2018-09-09 00:15:50 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2020-04-16 12:53:59 +0200 |
| commit | f4b8291fcbcfb16c23d07c60d4669afaf396dbea (patch) | |
| tree | 3b121c1e3ac8dc7a2d67ca965f4c8e4546e404c1 /lib/command.h | |
| parent | 243895805abcd27cc23f784c0b42036197fa1c3c (diff) | |
*: move CLI node names to cmd_node->name
And again for the name. Why on earth would we centralize this, just so
people can forget to update it?
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/command.h')
| -rw-r--r-- | lib/command.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/command.h b/lib/command.h index c1de67e10f..6ab8497fe6 100644 --- a/lib/command.h +++ b/lib/command.h @@ -165,11 +165,12 @@ enum node_type { extern vector cmdvec; extern const struct message tokennames[]; -extern const char *const node_names[]; /* Node which has some commands and prompt string and configuration function pointer . */ struct cmd_node { + const char *name; + /* Node index. */ enum node_type node; enum node_type parent_node; |
