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;