Fix build on GCC.
This commit is contained in:
parent
5da6cd4747
commit
6224cd89c0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user