]> git.baikalelectronics.ru Git - kernel.git/commit
net/core/sock.c: quiet sparse noise
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 15 Jan 2010 09:08:58 +0000 (01:08 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jan 2010 09:08:58 +0000 (01:08 -0800)
commit280342ce6cb571d35c9e232d844b5dbdb233d25c
treee3f18e591787212918c053532be85657bc202e65
parentec829ff6b5add7c77a3522992c2a102dfb6cab74
net/core/sock.c: quiet sparse noise

In sock_getsockopt the symbol 'lv' is declared as an
unsigned int type, probably due to sizeof returning a
size_t which is really an unsigned int.

This produces a sparse warning for SO_PEERNAME due to
the sock->ops->getname() call:

warning: incorrect type in argument 3 (different signedness)
   expected int *sockaddr_len
   got unsigned int *<noident>

Quiet the warning by changing the type of 'lv' to an int.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/sock.c