fix whitespaces

This commit is contained in:
Marian Krivos 2012-07-31 20:08:41 +00:00
parent 8ea4fa9c36
commit f8bfe8cb0a

View File

@ -905,20 +905,20 @@ NetworkInterface::NetworkInterfaceList NetworkInterface::list()
int ifIndex(-1);
if (currIface->ifa_addr)
{
switch (currIface->ifa_addr->sa_family)
{
case AF_INET6:
ifIndex = if_nametoindex(currIface->ifa_name);
addr = IPAddress(&reinterpret_cast<const struct sockaddr_in6*>(currIface->ifa_addr)->sin6_addr, sizeof(struct in6_addr), ifIndex);
haveAddr = true;
break;
case AF_INET:
addr = IPAddress(*(currIface->ifa_addr));
haveAddr = true;
break;
default:
break;
}
switch (currIface->ifa_addr->sa_family)
{
case AF_INET6:
ifIndex = if_nametoindex(currIface->ifa_name);
addr = IPAddress(&reinterpret_cast<const struct sockaddr_in6*>(currIface->ifa_addr)->sin6_addr, sizeof(struct in6_addr), ifIndex);
haveAddr = true;
break;
case AF_INET:
addr = IPAddress(*(currIface->ifa_addr));
haveAddr = true;
break;
default:
break;
}
}
if (haveAddr)
{