summaryrefslogtreecommitdiff
path: root/ripngd/ripng_peer.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-08-08 08:24:17 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-08-08 09:06:22 -0400
commit99a6a31e5093159c75d950b8b6f30116a6152ac0 (patch)
treef5f9733c85d14f76579333fd65222a324a565eb4 /ripngd/ripng_peer.c
parent00857b241e6c27efad54a19b4226c37f04d80bf5 (diff)
*: 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 'ripngd/ripng_peer.c')
-rw-r--r--ripngd/ripng_peer.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ripngd/ripng_peer.c b/ripngd/ripng_peer.c
index 2a412f9b64..cd46d97402 100644
--- a/ripngd/ripng_peer.c
+++ b/ripngd/ripng_peer.c
@@ -151,10 +151,6 @@ static char *ripng_peer_uptime(struct ripng_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);