]> Git Repo - linux.git/commit - net/batman-adv/bitarray.h
batman-adv: count_real_packets() in batman-adv assumes char is signed
authorDavid Howells <[email protected]>
Wed, 15 Jun 2011 07:41:36 +0000 (09:41 +0200)
committerSven Eckelmann <[email protected]>
Mon, 20 Jun 2011 09:23:36 +0000 (11:23 +0200)
commitb2c44a53836559b5e2823aa215c979c33bc9e2db
tree4373f6917c6c28b9caab3050e74571afc69bcbde
parentdb69ecfcb0d4df4d6449172186a8dd20836275ed
batman-adv: count_real_packets() in batman-adv assumes char is signed

count_real_packets() in batman-adv assumes char is signed, and returns -1
through it:

net/batman-adv/routing.c: In function 'receive_bat_packet':
net/batman-adv/routing.c:739: warning: comparison is always false due to limited range of data type

Use int instead.

Signed-off-by: David Howells <[email protected]>
[[email protected]: Rebase on top of current version]
Signed-off-by: Sven Eckelmann <[email protected]>
net/batman-adv/bitarray.c
net/batman-adv/bitarray.h
net/batman-adv/routing.c
This page took 0.060339 seconds and 4 git commands to generate.