mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
Reindent a few lines to fix a GCC warning.
As of GCC 11.1.1, the compiler warns us about code like this: if (a) b; c; and that's a good thing: we wouldn't want to "goto fail". But we had an instance if this in circuituse.c, which was making our compilation sad. Fixes bug 40380; bugfix on 0.3.0.1-alpha.
This commit is contained in:
parent
621f8a304a
commit
e2c1ac214c
3
changes/bug40380
Normal file
3
changes/bug40380
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
o Minor bugfixes (compiler warnings):
|
||||||
|
- Fix an indentation problem that led to a warning from GCC 11.1.1.
|
||||||
|
Fixes bug 40380; bugfix on 0.3.0.1-alpha.
|
@ -1315,10 +1315,10 @@ circuit_predict_and_launch_new(void)
|
|||||||
if (router_have_consensus_path() == CONSENSUS_PATH_INTERNAL)
|
if (router_have_consensus_path() == CONSENSUS_PATH_INTERNAL)
|
||||||
flags |= CIRCLAUNCH_IS_INTERNAL;
|
flags |= CIRCLAUNCH_IS_INTERNAL;
|
||||||
|
|
||||||
log_info(LD_CIRC,
|
log_info(LD_CIRC,
|
||||||
"Have %d clean circs need another buildtime test circ.", num);
|
"Have %d clean circs need another buildtime test circ.", num);
|
||||||
circuit_launch(CIRCUIT_PURPOSE_C_GENERAL, flags);
|
circuit_launch(CIRCUIT_PURPOSE_C_GENERAL, flags);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user