summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_damp.c
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-05-15 19:19:31 +0200
committerPaul Jakma <paul@quagga.net>2009-06-18 21:18:30 +0200
commite9dc9f247a668ece1b983cc964fec852c737bedd (patch)
treee8b865d140f9942655cd6d1190a87f3bade807ca /bgpd/bgp_damp.c
parent[BGP/cleanup] make ecommunity variables/functions local (diff)
downloadfrr-e9dc9f247a668ece1b983cc964fec852c737bedd.tar.xz
frr-e9dc9f247a668ece1b983cc964fec852c737bedd.zip
[BGP/cleanup] make some damp function static
Diffstat (limited to 'bgpd/bgp_damp.c')
-rw-r--r--bgpd/bgp_damp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_damp.c b/bgpd/bgp_damp.c
index ba25f4d1a..346ba5207 100644
--- a/bgpd/bgp_damp.c
+++ b/bgpd/bgp_damp.c
@@ -36,7 +36,7 @@ Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
/* Global variable to access damping configuration */
struct bgp_damp_config bgp_damp_cfg;
-struct bgp_damp_config *damp = &bgp_damp_cfg;
+static struct bgp_damp_config *damp = &bgp_damp_cfg;
/* Utility macro to add and delete BGP dampening information to no
used list. */
@@ -543,7 +543,7 @@ bgp_config_write_damp (struct vty *vty)
#define BGP_UPTIME_LEN 25
-char *
+static const char *
bgp_get_reuse_time (unsigned int penalty, char *buf, size_t len)
{
time_t reuse_time = 0;
@@ -615,7 +615,7 @@ bgp_damp_info_vty (struct vty *vty, struct bgp_info *binfo)
vty_out (vty, "%s", VTY_NEWLINE);
}
-char *
+const char *
bgp_damp_reuse_time_vty (struct vty *vty, struct bgp_info *binfo)
{
struct bgp_damp_info *bdi;