iproute2: use int instead of long for RTAX_HOPLIMIT compare
otherwise "if ((int)val == -1)" will never match on 64 bit systems Signed-off-by: Ulrich Weber <uweber@astaro.com>
This commit is contained in:
parent
2eca8d3d3e
commit
62011a0b31
|
|
@ -494,7 +494,7 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
|
|||
val = *(unsigned*)RTA_DATA(mxrta[i]);
|
||||
switch (i) {
|
||||
case RTAX_HOPLIMIT:
|
||||
if ((long)val == -1)
|
||||
if ((int)val == -1)
|
||||
val = 0;
|
||||
/* fall through */
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in New Issue