Fix compilation under linux.

This commit is contained in:
Joris 2012-08-18 00:12:29 +02:00
parent de8de5f975
commit 35d9be1774

View file

@ -289,8 +289,8 @@ int NetSocketAddr(const Socket sock)
for (char *cp = buf; cp < cplim;
cp += sizeof(ifr->ifr_name) + sizeof(ifr->ifr_ifru)) {
struct ifreq ifr = (struct ifreq *)cp;
ifreq = *ifr;
ifr = (struct ifreq *)cp;
struct ifreq ifreq = *ifr;
if (ioctl(sock, SIOCGIFFLAGS, (char *)&ifreq) < 0) {
DebugPrint("%s: SIOCGIFFLAGS - errno %d\n" _C_
ifr->ifr_name _C_ errno);