diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-15 10:19:31 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-15 10:19:31 -0700 |
commit | 7903e753e9355aadb44f6aa71dcf263cd64d9688 (patch) | |
tree | 6d2f7ef7deb120b727b57d0ab6ae9ff9a21252b5 | |
parent | 434fa88ab4181849d228ba247c63e7390c307fa1 (diff) | |
download | quagga-7903e753e9355aadb44f6aa71dcf263cd64d9688.tar.bz2 quagga-7903e753e9355aadb44f6aa71dcf263cd64d9688.tar.xz |
BGP make some damp function static
-rw-r--r-- | bgpd/bgp_damp.c | 6 | ||||
-rw-r--r-- | bgpd/bgp_damp.h | 5 |
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 */ |