summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-05-22 09:51:02 -0400
committerNick Mathewson <nickm@torproject.org>2013-02-19 11:06:23 -0500
commit869826581d01ae430b15721b0ff25ebe94103d1a (patch)
tree6307eb459226533223106417b30bb5788d50b6cb
parente73bbea26271dd6db75ca5c676f3c4ba8fc735e4 (diff)
downloadtor-869826581d01ae430b15721b0ff25ebe94103d1a.tar.gz
tor-869826581d01ae430b15721b0ff25ebe94103d1a.zip
Note some annoyinc copy-and-paste code
-rw-r--r--src/or/dirvote.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/dirvote.c b/src/or/dirvote.c
index d1ac8f8e94..96fc8a534f 100644
--- a/src/or/dirvote.c
+++ b/src/or/dirvote.c
@@ -1590,6 +1590,7 @@ networkstatus_compute_consensus(smartlist_t *votes,
if (consensus_method >= MIN_METHOD_TO_CLIP_UNMEASURED_BW) {
char *max_unmeasured_param = NULL;
+ /* XXXX Extract this code into a common function */
if (params) {
if (strcmpstart(params, "maxunmeasuredbw=") == 0)
max_unmeasured_param = params;
@@ -2097,6 +2098,7 @@ networkstatus_compute_consensus(smartlist_t *votes,
// Parse params, extract BW_WEIGHT_SCALE if present
// DO NOT use consensus_param_bw_weight_scale() in this code!
// The consensus is not formed yet!
+ /* XXXX Extract this code into a common function */
if (params) {
if (strcmpstart(params, "bwweightscale=") == 0)
bw_weight_param = params;