netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iproute2: use int instead of long for RTAX_HOPLIMIT compare
@ 2010-07-23 13:39 Ulrich Weber
  2010-07-23 16:01 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: Ulrich Weber @ 2010-07-23 13:39 UTC (permalink / raw)
  To: shemminger; +Cc: netdev

otherwise "if ((int)val == -1)" will never match on 64 bit systems

Signed-off-by: Ulrich Weber <uweber@astaro.com>
---
 ip/iproute.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ip/iproute.c b/ip/iproute.c
index 04b253a..711576e 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:
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] iproute2: use int instead of long for RTAX_HOPLIMIT compare
  2010-07-23 13:39 [PATCH] iproute2: use int instead of long for RTAX_HOPLIMIT compare Ulrich Weber
@ 2010-07-23 16:01 ` Stephen Hemminger
  2010-07-23 19:16   ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2010-07-23 16:01 UTC (permalink / raw)
  To: Ulrich Weber; +Cc: netdev

On Fri, 23 Jul 2010 15:39:10 +0200
Ulrich Weber <uweber@astaro.com> wrote:

> otherwise "if ((int)val == -1)" will never match on 64 bit systems
> 
> Signed-off-by: Ulrich Weber <uweber@astaro.com>
> ---
>  ip/iproute.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/ip/iproute.c b/ip/iproute.c
> index 04b253a..711576e 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:

All applied

-- 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] iproute2: use int instead of long for RTAX_HOPLIMIT compare
  2010-07-23 16:01 ` Stephen Hemminger
@ 2010-07-23 19:16   ` David Miller
  0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2010-07-23 19:16 UTC (permalink / raw)
  To: shemminger; +Cc: uweber, netdev

From: Stephen Hemminger <shemminger@vyatta.com>
Date: Fri, 23 Jul 2010 09:01:39 -0700

> All applied

Please update patchwork, and in the future please do so before emailing
the submitter that the patch is applied.

Patches assigned to you tend to just pile up, defeating the whole purpose
of using patchwork.

If you really don't want to stay on top of this and actually use the
tool, just let me know and I'll just toss all the patches that come
into the netdev group for iproute2.

This is about the 4th or 5th time I've brought this issue up with you.

I know you might find this hard to believe, but it will be less work
for you if the first thing you do as iproute2 maintainer every day is
open up the patchwork web page and scan the incoming patches and
process them, instead of hitting them via the mailing list first. :-)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-07-23 19:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-23 13:39 [PATCH] iproute2: use int instead of long for RTAX_HOPLIMIT compare Ulrich Weber
2010-07-23 16:01 ` Stephen Hemminger
2010-07-23 19:16   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).