Prechádzať zdrojové kódy

fix typo, remove extraneous variable

svn:r6311
Roger Dingledine 19 rokov pred
rodič
commit
453062b028
2 zmenil súbory, kde vykonal 1 pridanie a 2 odobranie
  1. 1 1
      src/or/circuitlist.c
  2. 0 1
      src/or/routerlist.c

+ 1 - 1
src/or/circuitlist.c

@@ -676,7 +676,7 @@ _circuit_mark_for_close(circuit_t *circ, int reason, int line,
     reason = END_CIRC_REASON_NONE;
   } else if (CIRCUIT_IS_ORIGIN(circ) && reason != END_CIRC_REASON_NONE) {
     /* Don't warn about this; there are plenty of places where our code
-     * is origin-agnosic. */
+     * is origin-agnostic. */
     reason = END_CIRC_REASON_NONE;
   }
   if (reason < _END_CIRC_REASON_MIN || reason > _END_CIRC_REASON_MAX) {

+ 0 - 1
src/or/routerlist.c

@@ -2612,7 +2612,6 @@ compute_recommended_versions(time_t now, int client)
     {
       const char *vers;
       smartlist_t *versions;
-      int i;
       if (! ns->recommends_versions)
         continue;
       if (ns->received_on + SELF_OPINION_INTERVAL < now)