Call nmatch function with parameters casted to types the function actually
expects.
This commit is contained in:
parent
8a6bee7011
commit
4de36c081e
@ -86,7 +86,7 @@ getif(s, addrp)
|
||||
while (len > 0) {
|
||||
ifrq = (struct ifreq *) p;
|
||||
sip = (struct sockaddr_in *) &ifrq->ifr_addr;
|
||||
m = nmatch(addrp, &(sip->sin_addr));
|
||||
m = nmatch((u_char *)addrp, (u_char *)&(sip->sin_addr));
|
||||
if (m > maxmatch) {
|
||||
maxmatch = m;
|
||||
ifrmax = ifrq;
|
||||
|
Loading…
Reference in New Issue
Block a user