]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Note some annoyinc copy-and-paste code
authorNick Mathewson <nickm@torproject.org>
Tue, 22 May 2012 13:51:02 +0000 (09:51 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 19 Feb 2013 16:06:23 +0000 (11:06 -0500)
src/or/dirvote.c

index d1ac8f8e94f2ee5023823f93b9c3a2d80ed5ab19..96fc8a534fa6825c670cf0f7e5787398b2971717 100644 (file)
@@ -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;