mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-06 18:29:47 +00:00
Call nmatch function with parameters casted to types the function actually
expects.
This commit is contained in:
parent
6902e79099
commit
c27501e784
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132848
@ -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…
x
Reference in New Issue
Block a user