Commit 4e6e3189 authored by Dominik Charousset's avatar Dominik Charousset

Fix shadowing warning

parent 471cd286
......@@ -134,10 +134,10 @@ std::vector<iface_info> get_mac_addresses() {
oss << hex;
oss.width(2);
oss << ctoi(item->ifr_hwaddr.sa_data[0]);
for (size_t i = 1; i < 6; ++i) {
for (size_t j = 1; j < 6; ++j) {
oss << ":";
oss.width(2);
oss << ctoi(item->ifr_hwaddr.sa_data[i]);
oss << ctoi(item->ifr_hwaddr.sa_data[j]);
}
auto addr = oss.str();
if (addr != "00:00:00:00:00:00") {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment