Fix build on GCC.

This commit is contained in:
Nathan Whitehorn 2013-11-06 01:14:00 +00:00
parent 5da6cd4747
commit 6224cd89c0

View File

@ -541,7 +541,8 @@ static int
in_difaddr_ioctl(caddr_t data, struct ifnet *ifp, struct thread *td)
{
const struct ifreq *ifr = (struct ifreq *)data;
const struct sockaddr_in *addr = (struct sockaddr_in *)&ifr->ifr_addr;
const struct sockaddr_in *addr = (const struct sockaddr_in *)
&ifr->ifr_addr;
struct ifaddr *ifa;
struct in_ifaddr *ia;
bool deleteAny, iaIsLast;