diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-08-11 15:34:54 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-08-11 15:34:54 -0700 |
commit | 31d62783129976be2bdeb2399e927ae2c6ca4b63 (patch) | |
tree | 9e0047b5075e840403309a22c4f0c254b4fd1d95 /ripd | |
parent | c4b2cfd119dd6130b37b1cdaaa5f3d47d8aab442 (diff) | |
download | quagga-31d62783129976be2bdeb2399e927ae2c6ca4b63.tar.bz2 quagga-31d62783129976be2bdeb2399e927ae2c6ca4b63.tar.xz |
Make command nodes static
The cmd_nodes used to configure vty, can mostly be static so
(basic data hiding 101).
Diffstat (limited to 'ripd')
-rw-r--r-- | ripd/rip_debug.c | 2 | ||||
-rw-r--r-- | ripd/rip_interface.c | 2 | ||||
-rw-r--r-- | ripd/rip_zebra.c | 2 | ||||
-rw-r--r-- | ripd/ripd.c | 2 |
4 files changed, 4 insertions, 4 deletions
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 69820b74..552217a5 100644 --- a/ripd/rip_interface.c +++ b/ripd/rip_interface.c @@ -2059,7 +2059,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 196277e1..c476d8f4 100644 --- a/ripd/rip_zebra.c +++ b/ripd/rip_zebra.c @@ -653,7 +653,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 e459af38..2b33c338 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -3690,7 +3690,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)# ", |