diff options
Diffstat (limited to 'meta/recipes-extended/iputils/iputils/0003-arping-Fix-comparison-of-different-signedness-warnin.patch')
-rw-r--r-- | meta/recipes-extended/iputils/iputils/0003-arping-Fix-comparison-of-different-signedness-warnin.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-extended/iputils/iputils/0003-arping-Fix-comparison-of-different-signedness-warnin.patch b/meta/recipes-extended/iputils/iputils/0003-arping-Fix-comparison-of-different-signedness-warnin.patch new file mode 100644 index 0000000000..ebd122c157 --- /dev/null +++ b/meta/recipes-extended/iputils/iputils/0003-arping-Fix-comparison-of-different-signedness-warnin.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From ec821e572a640bd79aecc3922cb9001f4b6b26f2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Petr Vorel <petr.vorel@gmail.com> | ||
3 | Date: Sat, 7 Sep 2019 06:07:19 +0200 | ||
4 | Subject: [PATCH] arping: Fix comparison of different signedness warning | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | ../arping.c:768:45: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint64_t’ {aka ‘long unsigned int’} [-Wsign-compare] | ||
10 | 768 | (ctl->quit_on_reply && ctl->timeout < total_expires)) { | ||
11 | |||
12 | Fixes: 1df5350 ("arping: fix -f quit on first reply regression") | ||
13 | Reference: https://github.com/iputils/iputils/pull/212 | ||
14 | Acked-by: Sami Kerola <kerolasa@iki.fi> | ||
15 | Signed-off-by: Petr Vorel <petr.vorel@gmail.com> | ||
16 | Upstream-Status: Backport [https://github.com/iputils/iputils/commit/ec821e572a640bd79aecc3922cb9001f4b6b26f2] | ||
17 | Signed-off-by: Diego Santa Cruz <Diego.SantaCruz@spinetix.com> | ||
18 | --- | ||
19 | arping.c | 2 +- | ||
20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
21 | |||
22 | diff --git a/arping.c b/arping.c | ||
23 | index 2d05728..88319cd 100644 | ||
24 | --- a/arping.c | ||
25 | +++ b/arping.c | ||
26 | @@ -765,7 +765,7 @@ static int event_loop(struct run_state *ctl) | ||
27 | } | ||
28 | total_expires += exp; | ||
29 | if ((0 < ctl->count && (uint64_t)ctl->count < total_expires) || | ||
30 | - (ctl->quit_on_reply && ctl->timeout < total_expires)) { | ||
31 | + (ctl->quit_on_reply && ctl->timeout < (long)total_expires)) { | ||
32 | exit_loop = 1; | ||
33 | continue; | ||
34 | } | ||
35 | -- | ||
36 | 2.18.4 | ||
37 | |||