diff --git a/src/ping.c b/src/ping.c
index 216feda1f5d688fd79766822937cb75d2d3608e8..df2f6da6e6bc69158ebad65e8c47615cd10bfcad 100644 (file)
--- a/src/ping.c
+++ b/src/ping.c
hl->pkg_missed++;
/* if the host did not answer our last N packages, trigger a resolv. */
hl->pkg_missed++;
/* if the host did not answer our last N packages, trigger a resolv. */
- if (ping_max_missed >= 0 && hl->pkg_missed >= ping_max_missed)
+ if ((ping_max_missed >= 0)
+ && (hl->pkg_missed >= ((uint32_t) ping_max_missed)))
{ /* {{{ */
/* we reset the missed package counter here, since we only want to
* trigger a resolv every N packages and not every package _AFTER_ N
{ /* {{{ */
/* we reset the missed package counter here, since we only want to
* trigger a resolv every N packages and not every package _AFTER_ N
* `ts_wait'. */
time_calc (&ts_wait, &ts_int, &tv_begin, &tv_end);
* `ts_wait'. */
time_calc (&ts_wait, &ts_int, &tv_begin, &tv_end);
- status = pthread_cond_timedwait (&ping_cond, &ping_lock, &ts_wait);
+ pthread_cond_timedwait (&ping_cond, &ping_lock, &ts_wait);
if (ping_thread_loop <= 0)
break;
} /* while (ping_thread_loop > 0) */
if (ping_thread_loop <= 0)
break;
} /* while (ping_thread_loop > 0) */