summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Habets <habets@google.com>2019-11-01 17:23:23 +0000
committerThomas Habets <habets@google.com>2019-11-01 17:23:23 +0000
commit1322eeab7c338a0645e1baf2813a96ebeb1f8fc1 (patch)
treee0304a33a76992f2b5c41730ef40a7cd7218bbe5
parent636299ae0e22132dc57687c43c4c1e0278892b77 (diff)
downloadarping-1322eeab7c338a0645e1baf2813a96ebeb1f8fc1.tar.gz
Suppress linter warning about loss of fraction
-rw-r--r--src/arping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arping.c b/src/arping.c
index 575aba3..5642598 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 > (double)(packetwait / 1000000)) {
+ if (max_wait > packetwait / 1000000.0) {
return packetwait;
}
return max_wait * 1000000;