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 [TOKENRING]: net/802/tr.c: s/struct rif_cache_s/struct rif_cache/ 2005-05-26 12:59:42 -07:00
8021q
appletalk
atm
ax25
bluetooth
bridge [BRIDGE]: receive path optimization 2005-05-29 14:16:48 -07:00
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 [PATCH] update Ross Biro bouncing email address 2005-05-05 16:36:49 -07:00
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 [PATCH] ISA DMA Kconfig fixes - part 4 (irda) 2005-05-04 07:33:14 -07:00
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 [PATCH] update Ross Biro bouncing email address 2005-05-05 16:36:49 -07:00
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 [AF_UNIX]: Use lookup_create(). 2005-05-19 12:26:43 -07:00
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 AUDIT: Fix user pointer deref thinko in sys_socketcall(). 2005-06-02 12:13:21 +01:00
sysctl_net.c
TUNABLE