Re: [TCP]: Convert several length variable to unsigned.

2007-12-21 Thread Joe Perches
On Fri, 2007-12-21 at 16:48 +0900, YOSHIFUJI Hideaki / 吉藤英明 wrote: > diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c > index 93980c3..3b4169c 100644 > --- a/net/ipv6/tcp_ipv6.c > +++ b/net/ipv6/tcp_ipv6.c > @@ -985,7 +985,7 @@ static void tcp_v6_send_reset(struct sock *sk, struct > sk_buff

Re: [TCP]: Convert several length variable to unsigned.

2007-12-21 Thread David Miller
From: YOSHIFUJI Hideaki / 吉藤英明 <[EMAIL PROTECTED]> Date: Fri, 21 Dec 2007 16:48:11 +0900 (JST) > Several length variables cannot be negative, so convert int to > unsigned int. This also allows us to do sane shift operations > on those variables. > > Signed-off-by: YOSHIFUJI Hideaki <[EMAIL PROTE

[TCP]: Convert several length variable to unsigned.

2007-12-20 Thread YOSHIFUJI Hideaki / 吉藤英明
Several length variables cannot be negative, so convert int to unsigned int. This also allows us to do sane shift operations on those variables. Signed-off-by: YOSHIFUJI Hideaki <[EMAIL PROTECTED]> -- diff --git a/include/net/tcp.h b/include/net/tcp.h index cb5b033..f663a85 100644 --- a/include/