summaryrefslogtreecommitdiffstats
path: root/isisd/isis_spf.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2015-03-03 08:48:11 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2015-04-19 20:40:19 +0200
commitef008d2f8dc8f7160d8a3d24a15f2fad79ef3242 (patch)
tree036d3b4c7bc0071f045bc1cb3a54c422dffc1806 /isisd/isis_spf.c
parentec62e1438ece9af0546f9028aa1403f2c84bf177 (diff)
downloadquagga-ef008d2f8dc8f7160d8a3d24a15f2fad79ef3242.tar.bz2
quagga-ef008d2f8dc8f7160d8a3d24a15f2fad79ef3242.tar.xz
*: use long long to print time_t
Since we can't assume time_t to be long, int, or even long long, this consistently uses %lld/long long (or %llu/unsigned long long in a few cases) to print time_t/susecond_t values. This should fix a bunch of warnings, on NetBSD in particular. (Unfortunately, there seems to be no "PRId64" style printing macro for time_t...) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_spf.c')
-rw-r--r--isisd/isis_spf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/isisd/isis_spf.c b/isisd/isis_spf.c
index fd93efa6..a4cbba6b 100644
--- a/isisd/isis_spf.c
+++ b/isisd/isis_spf.c
@@ -1456,8 +1456,8 @@ isis_spf_schedule6 (struct isis_area *area, int level)
assert (area->is_type & level);
if (isis->debugs & DEBUG_SPF_EVENTS)
- zlog_debug ("ISIS-Spf (%s) L%d SPF schedule called, lastrun %d sec ago",
- area->area_tag, level, diff);
+ zlog_debug ("ISIS-Spf (%s) L%d SPF schedule called, lastrun %lld sec ago",
+ area->area_tag, level, (long long)diff);
if (spftree->pending)
return ISIS_OK;
@@ -1476,8 +1476,9 @@ isis_spf_schedule6 (struct isis_area *area, int level)
area->min_spf_interval[1] - diff);
if (isis->debugs & DEBUG_SPF_EVENTS)
- zlog_debug ("ISIS-Spf (%s) L%d SPF scheduled %d sec from now",
- area->area_tag, level, area->min_spf_interval[level-1] - diff);
+ zlog_debug ("ISIS-Spf (%s) L%d SPF scheduled %lld sec from now",
+ area->area_tag, level,
+ (long long)(area->min_spf_interval[level-1] - diff));
spftree->pending = 1;