summaryrefslogtreecommitdiff
path: root/ospfd/ospf_vty.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-12-01 11:10:34 -0800
committerPaul Jakma <paul@quagga.net>2009-06-12 17:10:29 +0100
commit7fc626de5f618133ad2a478d13defa3a110b89ea (patch)
tree432ff0e4672eabc2ec6b0dcffc22dcc0aee532c8 /ospfd/ospf_vty.c
parent66e5cd87194ae6fdd51061a91b4698bc0a652f6b (diff)
[cleanup] Make command nodes static
The cmd_nodes used to configure vty, can mostly be static so (basic data hiding 101).
Diffstat (limited to 'ospfd/ospf_vty.c')
-rw-r--r--ospfd/ospf_vty.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
index c4abe7e1..2e4b6078 100644
--- a/ospfd/ospf_vty.c
+++ b/ospfd/ospf_vty.c
@@ -8073,7 +8073,7 @@ ospf_vty_show_init (void)
/* ospfd's interface node. */
-struct cmd_node interface_node =
+static struct cmd_node interface_node =
{
INTERFACE_NODE,
"%s(config-if)# ",
@@ -8184,13 +8184,6 @@ ospf_vty_if_init (void)
install_element (INTERFACE_NODE, &no_ospf_transmit_delay_cmd);
}
-/* Zebra node structure. */
-struct cmd_node zebra_node =
-{
- ZEBRA_NODE,
- "%s(config-router)#",
-};
-
static void
ospf_vty_zebra_init (void)
{
@@ -8283,7 +8276,7 @@ ospf_vty_zebra_init (void)
#endif /* 0 */
}
-struct cmd_node ospf_node =
+static struct cmd_node ospf_node =
{
OSPF_NODE,
"%s(config-router)# ",