diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-08 14:24:17 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-08 15:06:22 +0200 |
commit | 99a6a31e5093159c75d950b8b6f30116a6152ac0 (patch) | |
tree | f5f9733c85d14f76579333fd65222a324a565eb4 /isisd/isis_misc.c | |
parent | Merge pull request #924 from qlyoung/deprecate-ospf-lsa-min-arrival (diff) | |
download | frr-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 'isisd/isis_misc.c')
-rw-r--r-- | isisd/isis_misc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/isisd/isis_misc.c b/isisd/isis_misc.c index c872774da..e8888a5f5 100644 --- a/isisd/isis_misc.c +++ b/isisd/isis_misc.c @@ -609,8 +609,6 @@ void vty_out_timestr(struct vty *vty, time_t uptime) difftime -= uptime; tm = gmtime(&difftime); -#define ONE_DAY_SECOND 60*60*24 -#define ONE_WEEK_SECOND 60*60*24*7 if (difftime < ONE_DAY_SECOND) vty_out(vty, "%02d:%02d:%02d", tm->tm_hour, tm->tm_min, tm->tm_sec); |