summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2008-04-16 00:12:44 +0000
committerRoger Dingledine <arma@torproject.org>2008-04-16 00:12:44 +0000
commit5e299b5e013ef9608810d4cc6e4ff63d8928f5f4 (patch)
treecfd7888a1bd61b2b1e1c1df98ca3e1d0b2da2d26 /src/or
parent2b4ff1718f846b438229ea8419b3b5e8b0b192a5 (diff)
downloadtor-5e299b5e013ef9608810d4cc6e4ff63d8928f5f4.tar.gz
tor-5e299b5e013ef9608810d4cc6e4ff63d8928f5f4.zip
minor fixes that have been accumulating
svn:r14378
Diffstat (limited to 'src/or')
-rw-r--r--src/or/circuituse.c2
-rw-r--r--src/or/connection.c2
-rw-r--r--src/or/geoip.c4
-rw-r--r--src/or/networkstatus.c2
-rw-r--r--src/or/rephist.c4
-rw-r--r--src/or/routerlist.c1
6 files changed, 8 insertions, 7 deletions
diff --git a/src/or/circuituse.c b/src/or/circuituse.c
index b014fab8f9..73c31144dd 100644
--- a/src/or/circuituse.c
+++ b/src/or/circuituse.c
@@ -83,7 +83,7 @@ circuit_is_acceptable(circuit_t *circ, edge_connection_t *conn,
if (purpose == CIRCUIT_PURPOSE_C_GENERAL) {
if (!exitrouter && !build_state->onehop_tunnel) {
- log_debug(LD_CIRC,"Not considering circuit with unknown router.");
+ log_debug(LD_CIRC,"Not considering circuit with unknown router.");
return 0; /* this circuit is screwed and doesn't know it yet,
* or is a rendezvous circuit. */
}
diff --git a/src/or/connection.c b/src/or/connection.c
index a8e4f057e5..6bd4f3304e 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -1968,7 +1968,7 @@ connection_read_to_buf(connection_t *conn, int *max_to_read)
case TOR_TLS_CLOSE:
case TOR_TLS_ERROR_IO:
log_debug(LD_NET,"TLS connection closed %son read. Closing. "
- "(Nickname %s, address %s",
+ "(Nickname %s, address %s)",
result == TOR_TLS_CLOSE ? "cleanly " : "",
or_conn->nickname ? or_conn->nickname : "not set",
conn->address);
diff --git a/src/or/geoip.c b/src/or/geoip.c
index f81c18c85f..97ea9d7eb4 100644
--- a/src/or/geoip.c
+++ b/src/or/geoip.c
@@ -65,7 +65,7 @@ geoip_add_entry(uint32_t low, uint32_t high, const char *country)
}
/** Add an entry to the GeoIP table, parsing it from <b>line</b>. The
- * format is as for geoip_load_file. */
+ * format is as for geoip_load_file(). */
/*private*/ int
geoip_parse_entry(const char *line)
{
@@ -283,7 +283,7 @@ geoip_remove_old_clients(time_t cutoff)
/** Do not report any geoip data at all if we have fewer than this number of
* IPs to report about. */
#define MIN_IPS_TO_NOTE_ANYTHING 16
-/** When reporting geoip data about countries, round down to the nearest
+/** When reporting geoip data about countries, round up to the nearest
* multiple of this value. */
#define IP_GRANULARITY 8
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 54caf187c3..3029866f26 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -1706,7 +1706,7 @@ routers_update_status_from_consensus_networkstatus(smartlist_t *routers,
router_clear_status_flags(router);
}
}) {
- /* We have a routersatus for this router. */
+ /* We have a routerstatus for this router. */
const char *digest = router->cache_info.identity_digest;
ds = router_get_trusteddirserver_by_digest(digest);
diff --git a/src/or/rephist.c b/src/or/rephist.c
index 64228b3927..093a716da9 100644
--- a/src/or/rephist.c
+++ b/src/or/rephist.c
@@ -312,7 +312,7 @@ rep_hist_note_router_unreachable(const char *id, time_t when)
started_tracking_stability = time(NULL);
if (hist && hist->start_of_run) {
/*XXXX We could treat failed connections differently from failed
- * conect attempts. */
+ * connect attempts. */
long run_length = when - hist->start_of_run;
hist->weighted_run_length += run_length;
hist->total_run_weights += 1.0;
@@ -1484,7 +1484,7 @@ rep_hist_get_predicted_ports(time_t now)
}
/** The user asked us to do a resolve. Rather than keeping track of
- * timings and such of resolves, we fake it for now by making treating
+ * timings and such of resolves, we fake it for now by treating
* it the same way as a connection to port 80. This way we will continue
* to have circuits lying around if the user only uses Tor for resolves.
*/
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 60427bb586..5ac4ee467b 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -3103,6 +3103,7 @@ routerlist_remove_old_routers(void)
* pruning current routers that are too old and that nobody recommends. (If
* we don't have enough networkstatuses, then we should get more before we
* decide to kill routers.) */
+ /* XXX021 we don't check if we have a v3 consensus, do we? should we? -RD */
if (!caches ||
smartlist_len(networkstatus_v2_list) > get_n_v2_authorities() / 2) {
cutoff = now - ROUTER_MAX_AGE;