summaryrefslogtreecommitdiffstats
path: root/ripd/rip_peer.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 /ripd/rip_peer.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 'ripd/rip_peer.c')
-rw-r--r--ripd/rip_peer.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ripd/rip_peer.c b/ripd/rip_peer.c
index 763bfc142..0a6337bf7 100644
--- a/ripd/rip_peer.c
+++ b/ripd/rip_peer.c
@@ -143,10 +143,6 @@ static char *rip_peer_uptime(struct rip_peer *peer, char *buf, size_t len)
uptime -= peer->uptime;
tm = gmtime(&uptime);
-/* Making formatted timer strings. */
-#define ONE_DAY_SECOND 60*60*24
-#define ONE_WEEK_SECOND 60*60*24*7
-
if (uptime < ONE_DAY_SECOND)
snprintf(buf, len, "%02d:%02d:%02d", tm->tm_hour, tm->tm_min,
tm->tm_sec);