diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2015-03-03 08:48:11 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2015-04-19 20:40:19 +0200 |
commit | ef008d2f8dc8f7160d8a3d24a15f2fad79ef3242 (patch) | |
tree | 036d3b4c7bc0071f045bc1cb3a54c422dffc1806 /isisd/isis_adjacency.c | |
parent | ec62e1438ece9af0546f9028aa1403f2c84bf177 (diff) | |
download | quagga-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_adjacency.c')
-rw-r--r-- | isisd/isis_adjacency.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/isisd/isis_adjacency.c b/isisd/isis_adjacency.c index 414885fc..a3524362 100644 --- a/isisd/isis_adjacency.c +++ b/isisd/isis_adjacency.c @@ -396,7 +396,8 @@ isis_adj_print_vty (struct isis_adjacency *adj, struct vty *vty, char detail) vty_out (vty, "%-13s", adj_state2string (adj->adj_state)); now = time (NULL); if (adj->last_upd) - vty_out (vty, "%-9lu", adj->last_upd + adj->hold_time - now); + vty_out (vty, "%-9llu", + (unsigned long long)adj->last_upd + adj->hold_time - now); else vty_out (vty, "- "); vty_out (vty, "%-10s", snpa_print (adj->snpa)); |