diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-28 10:21:51 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-05-28 10:21:51 -0700 |
commit | 489d3935b90bc6f1a0b866f321c4d1fc9f480d8b (patch) | |
tree | 8ab28fbadde2a9d1652f5f8714066f73799928ea /bgpd/bgp_damp.c | |
parent | 078fe1a5228485101a19caba39dab70ea12179ae (diff) | |
download | quagga-489d3935b90bc6f1a0b866f321c4d1fc9f480d8b.tar.bz2 quagga-489d3935b90bc6f1a0b866f321c4d1fc9f480d8b.tar.xz |
fix compiler warnings
Fix easy compiler warnings about unused code by marking them with #if 0
Add one missing printf argument.
Diffstat (limited to 'bgpd/bgp_damp.c')
-rw-r--r-- | bgpd/bgp_damp.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/bgpd/bgp_damp.c b/bgpd/bgp_damp.c index 5a7c9aaa..a0a8557d 100644 --- a/bgpd/bgp_damp.c +++ b/bgpd/bgp_damp.c @@ -520,8 +520,6 @@ bgp_damp_disable (struct bgp *bgp, afi_t afi, safi_t safi) int bgp_config_write_damp (struct vty *vty) { - if (&bgp_damp_cfg) - { if (bgp_damp_cfg.half_life == DEFAULT_HALF_LIFE*60 && bgp_damp_cfg.reuse_limit == DEFAULT_REUSE && bgp_damp_cfg.suppress_value == DEFAULT_SUPPRESS @@ -542,8 +540,6 @@ bgp_config_write_damp (struct vty *vty) bgp_damp_cfg.max_suppress_time/60, VTY_NEWLINE); return 1; - } - return 0; } #define BGP_UPTIME_LEN 25 |