From: Ulrich Weber Date: Fri, 23 Jul 2010 13:39:10 +0000 (+0200) Subject: iproute2: use int instead of long for RTAX_HOPLIMIT compare X-Git-Tag: v2.6.35~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62011a0b31009a16518e0b17ba7205349a4b2a72;p=thirdparty%2Fiproute2.git 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 --- diff --git a/ip/iproute.c b/ip/iproute.c index 04b253a40..711576ead 100644 --- a/ip/iproute.c +++ b/ip/iproute.c @@ -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: