kernel-ark/net
Jesper Juhl 93765d8a43 [IPV4]: [3/4] signed vs unsigned cleanup in net/ipv4/raw.c
This patch changes the type of the local variable 'i' in 
raw_probe_proto_opt() from 'int' to 'unsigned int'. The only use of 'i' in 
this function is as a counter in a for() loop and subsequent index into 
the msg->msg_iov[] array.
Since 'i' is compared in a loop to the unsigned variable msg->msg_iovlen 
gcc -W generates this warning : 

net/ipv4/raw.c:340: warning: comparison between signed and unsigned

Changing 'i' to unsigned silences this warning and is safe since the array 
index can never be negative anyway, so unsigned int is the logical type to 
use for 'i' and also enables a larger msg_iov[] array (but I don't know if 
that will ever matter).

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2005-06-18 23:00:15 -07:00
..
802
8021q
appletalk
atm
ax25
bluetooth
bridge
core [NETLINK]: Set correct pid for ioctl originating netlink events 2005-06-18 22:55:51 -07:00
decnet [DECNET]: Remove unnecessary initilization of unused variable entries 2005-06-18 22:55:02 -07:00
econet
ethernet
ipv4 [IPV4]: [3/4] signed vs unsigned cleanup in net/ipv4/raw.c 2005-06-18 23:00:15 -07:00
ipv6 [IPV4/IPV6]: Replace spin_lock_irq with spin_lock_bh 2005-06-18 22:56:18 -07:00
ipx
irda
key [IPSEC] Fix xfrm_state leaks in error path 2005-06-18 22:45:31 -07:00
lapb
llc
netlink [NETLINK]: Introduce NLMSG_NEW macro to better handle netlink flags 2005-06-18 22:53:48 -07:00
netrom
packet
rose
rxrpc
sched [PKT_SCHED]: noop/noqueue qdisc style cleanups 2005-06-18 22:59:08 -07:00
sctp [SCTP]: Replace spin_lock_irqsave with spin_lock_bh 2005-06-18 22:56:42 -07:00
sunrpc
unix
wanrouter
x25
xfrm [IPSEC]: Add XFRMA_SA/XFRMA_POLICY for delete notification 2005-06-18 22:54:36 -07:00
compat.c
Kconfig
Makefile
nonet.c
socket.c
sysctl_net.c
TUNABLE