summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChelsea H. Komlo <chelsea.komlo@gmail.com>2016-11-28 13:00:38 -0500
committerNick Mathewson <nickm@torproject.org>2017-01-08 13:14:56 -0500
commit655ffeadd53833d96a25a70261b31c60d6f0ac6d (patch)
treec45e9c37e079903962ed7496a0098998c47347e0 /src
parentf4ebbf756787d49a3ccfaaad0fffba5fc9fa4915 (diff)
downloadtor-655ffeadd53833d96a25a70261b31c60d6f0ac6d.tar.gz
tor-655ffeadd53833d96a25a70261b31c60d6f0ac6d.zip
comment fixups
Diffstat (limited to 'src')
-rw-r--r--src/or/connection.c2
-rw-r--r--src/or/main.c7
-rw-r--r--src/or/or.h2
3 files changed, 5 insertions, 6 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 5b22594969..7e0ee4551e 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -34,7 +34,7 @@
* they become able to read or write register the fact with the event main
* loop by calling connection_watch_events(), connection_start_reading(), or
* connection_start_writing(). When they no longer want to read or write,
- * they call connection_stop_reading() or connection_start_writing().
+ * they call connection_stop_reading() or connection_stop_writing().
*
* To queue data to be written on a connection, call
* connection_write_to_buf(). When data arrives, the
diff --git a/src/or/main.c b/src/or/main.c
index 0d4da65764..24b209ce8a 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -486,7 +486,7 @@ connection_check_event(connection_t *conn, struct event *ev)
*/
bad = ev != NULL;
} else {
- /* Everytyhing else should have an underlying socket, or a linked
+ /* Everything else should have an underlying socket, or a linked
* connection (which is also tracked with a read_event/write_event pair).
*/
bad = ev == NULL;
@@ -1656,8 +1656,7 @@ static int
check_expired_networkstatus_callback(time_t now, const or_options_t *options)
{
(void)options;
- /* 1f. Check whether our networkstatus has expired.
- */
+ /* Check whether our networkstatus has expired. */
networkstatus_t *ns = networkstatus_get_latest_consensus();
/*XXXX RD: This value needs to be the same as REASONABLY_LIVE_TIME in
* networkstatus_get_reasonably_live_consensus(), but that value is way
@@ -1769,7 +1768,7 @@ clean_caches_callback(time_t now, const or_options_t *options)
/**
* Periodic callback: Clean the cache of failed hidden service lookups
- * frequently frequently.
+ * frequently.
*/
static int
rend_cache_failure_clean_callback(time_t now, const or_options_t *options)
diff --git a/src/or/or.h b/src/or/or.h
index 00031a8929..600bd9dbe6 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1760,7 +1760,7 @@ typedef struct dir_connection_t {
/** Which 'resource' did we ask the directory for? This is typically the part
* of the URL string that defines, relative to the directory conn purpose,
* what thing we want. For example, in router descriptor downloads by
- * descriptor digest, it contains "d/", then one ore more +-separated
+ * descriptor digest, it contains "d/", then one or more +-separated
* fingerprints.
**/
char *requested_resource;