1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix duplicated usage of variable

This commit is contained in:
Steffen Vogel 2019-01-21 17:28:01 +01:00
parent 8a97f534a6
commit 9acd10fefa

View file

@ -331,11 +331,11 @@ int SuperNode::start()
#ifdef WITH_NETEM
logger->info("Starting interfaces");
for (size_t i = 0; i < vlist_length(&interfaces); i++) {
auto *i = (struct interface *) vlist_at(&interfaces, i);
auto *j = (struct interface *) vlist_at(&interfaces, i);
ret = if_start(i);
ret = if_start(j);
if (ret)
throw RuntimeError("Failed to initialize network interface: {}", if_name(i));
throw RuntimeError("Failed to initialize network interface: {}", if_name(j));
}
#endif /* WITH_NETEM */