]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - iproute2/patches/iproute2-3.11.0-rtt.patch
strongswan: Disable stroke and move fully towards swanctl
[people/ms/ipfire-3.x.git] / iproute2 / patches / iproute2-3.11.0-rtt.patch
1 diff --git a/lib/utils.c b/lib/utils.c
2 index dae1b51..8a1a65d 100644
3 --- a/lib/utils.c
4 +++ b/lib/utils.c
5 @@ -145,7 +145,7 @@ int get_time_rtt(unsigned *val, const char *arg, int *raw)
6 return -1;
7
8 /* extra non-digits */
9 - if (!p || p == arg || *p)
10 + if (!p || p == arg)
11 return -1;
12
13 /* over/underflow */
14 @@ -155,7 +155,7 @@ int get_time_rtt(unsigned *val, const char *arg, int *raw)
15 res = strtoul(arg, &p, 0);
16
17 /* empty string or trailing non-digits */
18 - if (!p || p == arg || *p)
19 + if (!p || p == arg)
20 return -1;
21
22 /* overflow */
23 @@ -165,8 +165,6 @@ int get_time_rtt(unsigned *val, const char *arg, int *raw)
24 t = (double)res;
25 }
26
27 - if (p == arg)
28 - return -1;
29 *raw = 1;
30
31 if (*p) {