Call nmatch function with parameters casted to types the function actually

expects.
This commit is contained in:
kan 2004-07-29 18:05:20 +00:00
parent 8a6bee7011
commit 4de36c081e

View File

@ -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;