Use unsigned optlen in getsourcefilter()

Sizes can not be negative and the functions that use it
expect an unsigned value anyways.

Obtained from:	Apple (Libc-997.90.3)
MFC after:	1 week
This commit is contained in:
Pedro F. Giffuni 2014-07-19 01:53:52 +00:00
parent 9f7289bfc4
commit bef4f148b1

View File

@ -337,7 +337,8 @@ getsourcefilter(int s, uint32_t interface, struct sockaddr *group,
{
struct __msfilterreq msfr;
sockunion_t *psu;
int err, level, nsrcs, optlen, optname;
int err, level, nsrcs, optname;
unsigned int optlen;
if (interface == 0 || group == NULL || numsrc == NULL ||
fmode == NULL) {