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:
Ulrich Weber 2010-07-23 15:39:10 +02:00 committed by Stephen Hemminger
parent 2eca8d3d3e
commit 62011a0b31
1 changed files with 1 additions and 1 deletions

View File

@ -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: