summaryrefslogtreecommitdiffstats
path: root/libexec/bootpd
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2004-07-29 18:05:20 +0000
committerkan <kan@FreeBSD.org>2004-07-29 18:05:20 +0000
commit44ddf6cddd77c0720f9d04d984282bb298e2018d (patch)
tree9a230c2b81ede69f813938573003314f715fe63b /libexec/bootpd
parented22bf5a6696a8889c5b7ee026ae9173bec9482d (diff)
downloadFreeBSD-src-44ddf6cddd77c0720f9d04d984282bb298e2018d.zip
FreeBSD-src-44ddf6cddd77c0720f9d04d984282bb298e2018d.tar.gz
Call nmatch function with parameters casted to types the function actually
expects.
Diffstat (limited to 'libexec/bootpd')
-rw-r--r--libexec/bootpd/getif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/bootpd/getif.c b/libexec/bootpd/getif.c
index ec7cd8f..64e5eda 100644
--- a/libexec/bootpd/getif.c
+++ b/libexec/bootpd/getif.c
@@ -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;
OpenPOWER on IntegriCloud