From 31d62783129976be2bdeb2399e927ae2c6ca4b63 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 11 Aug 2008 15:34:54 -0700 Subject: Make command nodes static The cmd_nodes used to configure vty, can mostly be static so (basic data hiding 101). --- lib/command.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/command.c') diff --git a/lib/command.c b/lib/command.c index 270bf0d3..a9085eb7 100644 --- a/lib/command.c +++ b/lib/command.c @@ -41,31 +41,31 @@ vector cmdvec = NULL; struct host host; /* Standard command node structures. */ -struct cmd_node auth_node = +static struct cmd_node auth_node = { AUTH_NODE, "Password: ", }; -struct cmd_node view_node = +static struct cmd_node view_node = { VIEW_NODE, "%s> ", }; -struct cmd_node auth_enable_node = +static struct cmd_node auth_enable_node = { AUTH_ENABLE_NODE, "Password: ", }; -struct cmd_node enable_node = +static struct cmd_node enable_node = { ENABLE_NODE, "%s# ", }; -struct cmd_node config_node = +static struct cmd_node config_node = { CONFIG_NODE, "%s(config)# ", -- cgit v1.2.3