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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=268867

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) {