diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2017-08-26 01:14:25 +0200 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2017-08-26 01:46:40 +0200 | 
| commit | a97986ffba560458b2b1e88b09b31822f78d8542 (patch) | |
| tree | 49ae3ae301d7e1052d69fe0884a565897ca65576 /babeld/babeld.c | |
| parent | e1bd637370df9708af91c699b2510a788625bc5a (diff) | |
*: fix compiler warnings
Specifically, gcc 4.2.1 on OpenBSD 6.0 warns about these;  they're bogus
(gcc 4.2, being rather old, isn't quite as "intelligent" as newer
versions; the newer ones apply more logic and less warnings.)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'babeld/babeld.c')
| -rw-r--r-- | babeld/babeld.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/babeld/babeld.c b/babeld/babeld.c index f995745e41..207c37d9b1 100644 --- a/babeld/babeld.c +++ b/babeld/babeld.c @@ -331,8 +331,8 @@ babel_main_loop(struct thread *thread)          /* if there is no timeout, we must wait. */          if(timeval_compare(&tv, &babel_now) > 0) {              timeval_minus(&tv, &tv, &babel_now); -            debugf(BABEL_DEBUG_TIMEOUT, "babel main loop : timeout: %ld msecs", -                   tv.tv_sec * 1000 + tv.tv_usec / 1000); +            debugf(BABEL_DEBUG_TIMEOUT, "babel main loop : timeout: %lld msecs", +                   (long long)tv.tv_sec * 1000 + tv.tv_usec / 1000);              /* it happens often to have less than 1 ms, it's bad. */              timeval_add_msec(&tv, &tv, 300);              babel_set_timer(&tv);  | 
