summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_damp.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-08-08 14:24:17 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-08-08 15:06:22 +0200
commit99a6a31e5093159c75d950b8b6f30116a6152ac0 (patch)
treef5f9733c85d14f76579333fd65222a324a565eb4 /bgpd/bgp_damp.c
parentMerge pull request #924 from qlyoung/deprecate-ospf-lsa-min-arrival (diff)
downloadfrr-99a6a31e5093159c75d950b8b6f30116a6152ac0.tar.xz
frr-99a6a31e5093159c75d950b8b6f30116a6152ac0.zip
*: Define the number of seconds in a Day, Week and year
The defines: ONE_DAY_SECOND ONE_WEEK_SECOND ONE_YEAR_SECOND were being defined all over the system, move the define to a central location. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_damp.c')
-rw-r--r--bgpd/bgp_damp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/bgpd/bgp_damp.c b/bgpd/bgp_damp.c
index bd3ae27c0..36ffb0e9c 100644
--- a/bgpd/bgp_damp.c
+++ b/bgpd/bgp_damp.c
@@ -543,8 +543,6 @@ static const char *bgp_get_reuse_time(unsigned int penalty, char *buf,
reuse_time = 0;
/* Making formatted timer strings. */
-#define ONE_DAY_SECOND 60*60*24
-#define ONE_WEEK_SECOND 60*60*24*7
if (reuse_time == 0) {
if (use_json)
json_object_int_add(json, "reuseTimerMsecs", 0);