aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2011-06-08 21:23:05 +0200
committerSebastian Hahn <sebastian@torproject.org>2011-06-08 21:30:41 +0200
commit9e56ac27da80969fadaad7eaf64a8384e68a778e (patch)
tree21b28a714ef7589680fff2f796ecbed70f5c391d
parente6fff7235e46b794cd77af516a1ecfab9c87de7f (diff)
downloadtor-9e56ac27da80969fadaad7eaf64a8384e68a778e.tar
tor-9e56ac27da80969fadaad7eaf64a8384e68a778e.tar.gz
Comment out some obviously dead code.
Coverity warned about it, it's harmless to comment out.
-rw-r--r--src/or/circuitlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circuitlist.c b/src/or/circuitlist.c
index 4ad244dfd..8534c3807 100644
--- a/src/or/circuitlist.c
+++ b/src/or/circuitlist.c
@@ -775,8 +775,8 @@ circuit_get_by_circid_orconn_impl(circid_t circ_id, or_connection_t *conn)
return found->circuit;
return NULL;
-
/* The rest of this checks for bugs. Disabled by default. */
+ /* We comment it out because coverity complains otherwise.
{
circuit_t *circ;
for (circ=global_circuitlist;circ;circ = circ->next) {
@@ -795,7 +795,7 @@ circuit_get_by_circid_orconn_impl(circid_t circ_id, or_connection_t *conn)
}
}
return NULL;
- }
+ } */
}
/** Return a circ such that: