]> git.puffer.fish Git - mirror/frr.git/commitdiff
[BGP/cleanup] make some damp function static
authorStephen Hemminger <stephen.hemminger@vyatta.com>
Fri, 15 May 2009 17:19:31 +0000 (10:19 -0700)
committerPaul Jakma <paul@quagga.net>
Thu, 18 Jun 2009 19:18:30 +0000 (20:18 +0100)
bgpd/bgp_damp.c
bgpd/bgp_damp.h

index ba25f4d1ae4004bd94fe32b9e69e7948baa03961..346ba52076f8814b61d307636eb2fe75fa6dd593 100644 (file)
@@ -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;
index 17c31cb99b9b3ac49f5fb94bb48a38ad6875ba76..e0bef4a8f680634f86aba32a73a1314c7ef67009 100644 (file)
@@ -138,10 +138,9 @@ 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 *);
+extern const char * bgp_damp_reuse_time_vty (struct vty *, struct bgp_info *);
 
 #endif /* _QUAGGA_BGP_DAMP_H */