diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-26 08:05:36 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-26 08:05:36 -0400 |
| commit | c3f779dc1ab632b1ba74bf16c39dc2f18e6187bc (patch) | |
| tree | 9e6fb20b162b8f3ce619b8a7be515cd741242c39 /lib/spf_backoff.c | |
| parent | e1bd637370df9708af91c699b2510a788625bc5a (diff) | |
| parent | d9e5b009554f99230be1eee62daf098403c3cadf (diff) | |
Merge pull request #1049 from opensourcerouting/openbsd-warnings
fix warnings on OpenBSD
Diffstat (limited to 'lib/spf_backoff.c')
| -rw-r--r-- | lib/spf_backoff.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/spf_backoff.c b/lib/spf_backoff.c index d075e70d4e..92b7620eda 100644 --- a/lib/spf_backoff.c +++ b/lib/spf_backoff.c @@ -226,8 +226,9 @@ void spf_backoff_show(struct spf_backoff *backoff, struct vty *vty, if (backoff->t_holddown) { struct timeval remain = thread_timer_remain(backoff->t_holddown); - vty_out(vty, "%s Still runs for %ld msec\n", - prefix, remain.tv_sec * 1000 + remain.tv_usec / 1000); + vty_out(vty, "%s Still runs for %lld msec\n", + prefix, (long long)remain.tv_sec * 1000 + + remain.tv_usec / 1000); } else { vty_out(vty, "%s Inactive\n", prefix); } @@ -237,8 +238,9 @@ void spf_backoff_show(struct spf_backoff *backoff, struct vty *vty, if (backoff->t_timetolearn) { struct timeval remain = thread_timer_remain(backoff->t_timetolearn); - vty_out(vty, "%s Still runs for %ld msec\n", - prefix, remain.tv_sec * 1000 + remain.tv_usec / 1000); + vty_out(vty, "%s Still runs for %lld msec\n", + prefix, (long long)remain.tv_sec * 1000 + + remain.tv_usec / 1000); } else { vty_out(vty, "%s Inactive\n", prefix); } |
