Call nmatch function with parameters casted to types the function actually

expects.
This commit is contained in:
Alexander Kabaev 2004-07-29 18:05:20 +00:00
parent 6902e79099
commit c27501e784
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132848

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;