mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 19:51:58 +01:00
remove unnecessary variable.
This commit is contained in:
@@ -881,7 +881,7 @@ NetworkInterface::List NetworkInterface::list(bool ipOnly, bool upOnly)
|
|||||||
const List& ipList = it->second.addressList();
|
const List& ipList = it->second.addressList();
|
||||||
List::const_iterator ipIt = ipList.begin();
|
List::const_iterator ipIt = ipList.begin();
|
||||||
List::const_iterator ipEnd = ipList.end();
|
List::const_iterator ipEnd = ipList.end();
|
||||||
for (int counter = 0; ipIt != ipEnd; ++ipIt, ++counter)
|
for (; ipIt != ipEnd; ++ipIt)
|
||||||
{
|
{
|
||||||
IPAddress addr = ipIt->get<NetworkInterface::IP_ADDRESS>();
|
IPAddress addr = ipIt->get<NetworkInterface::IP_ADDRESS>();
|
||||||
IPAddress mask = ipIt->get<NetworkInterface::SUBNET_MASK>();
|
IPAddress mask = ipIt->get<NetworkInterface::SUBNET_MASK>();
|
||||||
|
|||||||
Reference in New Issue
Block a user