comment fixups

This commit is contained in:
Chelsea H. Komlo 2016-11-28 13:00:38 -05:00 committed by Nick Mathewson
parent f4ebbf7567
commit 655ffeadd5
3 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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)

View File

@ -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;