From 7fc626de5f618133ad2a478d13defa3a110b89ea Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 1 Dec 2008 11:10:34 -0800 Subject: [cleanup] Make command nodes static The cmd_nodes used to configure vty, can mostly be static so (basic data hiding 101). --- ripd/rip_debug.c | 2 +- ripd/rip_interface.c | 2 +- ripd/rip_zebra.c | 2 +- ripd/ripd.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ripd') diff --git a/ripd/rip_debug.c b/ripd/rip_debug.c index d788ea7e..64dc27c0 100644 --- a/ripd/rip_debug.c +++ b/ripd/rip_debug.c @@ -203,7 +203,7 @@ DEFUN (no_debug_rip_zebra, } /* Debug node. */ -struct cmd_node debug_node = +static struct cmd_node debug_node = { DEBUG_NODE, "", /* Debug node has no interface. */ diff --git a/ripd/rip_interface.c b/ripd/rip_interface.c index 54d357ce..827663ac 100644 --- a/ripd/rip_interface.c +++ b/ripd/rip_interface.c @@ -2051,7 +2051,7 @@ config_write_rip_network (struct vty *vty, int config_mode) return 0; } -struct cmd_node interface_node = +static struct cmd_node interface_node = { INTERFACE_NODE, "%s(config-if)# ", diff --git a/ripd/rip_zebra.c b/ripd/rip_zebra.c index b924199f..7729d9b4 100644 --- a/ripd/rip_zebra.c +++ b/ripd/rip_zebra.c @@ -651,7 +651,7 @@ config_write_rip_redistribute (struct vty *vty, int config_mode) } /* Zebra node structure. */ -struct cmd_node zebra_node = +static struct cmd_node zebra_node = { ZEBRA_NODE, "%s(config-router)# ", diff --git a/ripd/ripd.c b/ripd/ripd.c index cb2603d0..0e3f877d 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -3680,7 +3680,7 @@ config_write_rip (struct vty *vty) } /* RIP node structure. */ -struct cmd_node rip_node = +static struct cmd_node rip_node = { RIP_NODE, "%s(config-router)# ", -- cgit v1.2.1