summaryrefslogtreecommitdiff
path: root/zebra
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 /zebra
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 'zebra')
-rw-r--r--zebra/zebra_vty.c4
-rw-r--r--zebra/zserv.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c
index 0c313921..f50ab05e 100644
--- a/zebra/zebra_vty.c
+++ b/zebra/zebra_vty.c
@@ -2030,10 +2030,10 @@ static int config_write_protocol(struct vty *vty)
}
/* table node for protocol filtering */
-struct cmd_node protocol_node = { PROTOCOL_NODE, "", 1 };
+static struct cmd_node protocol_node = { PROTOCOL_NODE, "", 1 };
/* IP node for static routes. */
-struct cmd_node ip_node = { IP_NODE, "", 1 };
+static struct cmd_node ip_node = { IP_NODE, "", 1 };
/* Route VTY. */
void
diff --git a/zebra/zserv.c b/zebra/zserv.c
index ef79eaad..05380d62 100644
--- a/zebra/zserv.c
+++ b/zebra/zserv.c
@@ -1569,7 +1569,7 @@ config_write_table (struct vty *vty)
}
/* table node for routing tables. */
-struct cmd_node table_node =
+static struct cmd_node table_node =
{
TABLE_NODE,
"", /* This node has no interface. */
@@ -1689,7 +1689,7 @@ config_write_forwarding (struct vty *vty)
}
/* table node for routing tables. */
-struct cmd_node forwarding_node =
+static struct cmd_node forwarding_node =
{
FORWARDING_NODE,
"", /* This node has no interface. */