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); int ifIndex(-1);
if (currIface->ifa_addr) if (currIface->ifa_addr)
{ {
switch (currIface->ifa_addr->sa_family) switch (currIface->ifa_addr->sa_family)
{ {
case AF_INET6: case AF_INET6:
ifIndex = if_nametoindex(currIface->ifa_name); ifIndex = if_nametoindex(currIface->ifa_name);
addr = IPAddress(&reinterpret_cast<const struct sockaddr_in6*>(currIface->ifa_addr)->sin6_addr, sizeof(struct in6_addr), ifIndex); addr = IPAddress(&reinterpret_cast<const struct sockaddr_in6*>(currIface->ifa_addr)->sin6_addr, sizeof(struct in6_addr), ifIndex);
haveAddr = true; haveAddr = true;
break; break;
case AF_INET: case AF_INET:
addr = IPAddress(*(currIface->ifa_addr)); addr = IPAddress(*(currIface->ifa_addr));
haveAddr = true; haveAddr = true;
break; break;
default: default:
break; break;
} }
} }
if (haveAddr) if (haveAddr)
{ {