summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_damp.c6
-rw-r--r--bgpd/bgp_damp.h5
2 files changed, 5 insertions, 6 deletions
diff --git a/bgpd/bgp_damp.c b/bgpd/bgp_damp.c
index 3283d448..40edb646 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. */
@@ -541,7 +541,7 @@ bgp_config_write_damp (struct vty *vty)
VTY_NEWLINE);
}
-char *
+static const char *
bgp_get_reuse_time (unsigned int penalty, char *buf, size_t len)
{
time_t reuse_time = 0;
@@ -613,7 +613,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,
char *timebuf, size_t len)
{
diff --git a/bgpd/bgp_damp.h b/bgpd/bgp_damp.h
index 8c762960..0b388fbb 100644
--- a/bgpd/bgp_damp.h
+++ b/bgpd/bgp_damp.h
@@ -138,11 +138,10 @@ extern int bgp_damp_update (struct bgp_info *, struct bgp_node *, afi_t, safi_t)
extern int bgp_damp_scan (struct bgp_info *, afi_t, safi_t);
extern void bgp_damp_info_free (struct bgp_damp_info *, int);
extern void bgp_damp_info_clean (void);
-extern char * bgp_get_reuse_time (unsigned int, char*, size_t);
extern int bgp_damp_decay (time_t, int);
extern void bgp_config_write_damp (struct vty *);
extern void bgp_damp_info_vty (struct vty *, struct bgp_info *);
-extern char * bgp_damp_reuse_time_vty (struct vty *, struct bgp_info *,
- char *, size_t);
+extern const char * bgp_damp_reuse_time_vty (struct vty *, struct bgp_info *,
+ char *, size_t);
#endif /* _QUAGGA_BGP_DAMP_H */