From c27501e784918a8ee8277e52d022b20b97a751e9 Mon Sep 17 00:00:00 2001 From: Alexander Kabaev Date: Thu, 29 Jul 2004 18:05:20 +0000 Subject: [PATCH] Call nmatch function with parameters casted to types the function actually expects. --- libexec/bootpd/getif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/bootpd/getif.c b/libexec/bootpd/getif.c index ec7cd8f716db..64e5edadb679 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;