mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-18 00:15:27 +01:00
fix whitespaces
This commit is contained in:
parent
8ea4fa9c36
commit
f8bfe8cb0a
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user