Fix build.

Pointy hat to:	glebius
This commit is contained in:
Gleb Smirnoff 2013-11-05 19:17:19 +00:00
parent 2764a2784f
commit 37968927c8

View File

@ -154,15 +154,16 @@ svr4_sock_ioctl(fp, td, retval, fd, cmd, data)
sc.svr4_ifc_len));
ifc = (struct ifconf *)≻
ifc->ifc_req.ifr_addr.sa_family =
sc.svr4_ifc_req.svr4_ifr_addr.sa_family;
ifc->ifc_req.ifr_addr.sa_len = sizeof(struct osockaddr);
ifc->ifc_req->ifr_addr.sa_family =
sc.svr4_ifc_req->svr4_ifr_addr.sa_family;
ifc->ifc_req->ifr_addr.sa_len =
sizeof(struct osockaddr);
error = fo_ioctl(fp, SIOCGIFCONF, &sc,
td->td_ucred, td));
error = fo_ioctl(fp, SIOCGIFCONF, &sc, td->td_ucred,
td);
sc.svr4_ifc_req.svr4_ifr_addr.sa_family =
ifc->ifc_req.ifr_addr.sa_family;
sc.svr4_ifc_req->svr4_ifr_addr.sa_family =
ifc->ifc_req->ifr_addr.sa_family;
if (error != 0)
return error;