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:
parent
8a97f534a6
commit
9acd10fefa
1 changed files with 3 additions and 3 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue