summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Habets <habets@google.com>2019-11-01 14:32:33 +0000
committerThomas Habets <habets@google.com>2019-11-01 14:32:33 +0000
commitb2ff4a15c342bb854e2ecab7fedf2f0bbc800dca (patch)
treeb13016ee28d539844ef5d05a6120b05347fdbeb2
parent6fd7cee787624426cc0bc1f6e4a9175c01640115 (diff)
downloadarping-b2ff4a15c342bb854e2ecab7fedf2f0bbc800dca.tar.gz
Explicit cast to satisfy coverity
-rw-r--r--src/arping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arping.c b/src/arping.c
index b6e07b4..575aba3 100644
--- a/src/arping.c
+++ b/src/arping.c
@@ -911,7 +911,7 @@ wait_time(double deadline, uint32_t packetwait)
if (max_wait < 0) {
return 0;
}
- if (max_wait > packetwait / 1000000) {
+ if (max_wait > (double)(packetwait / 1000000)) {
return packetwait;
}
return max_wait * 1000000;