[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] comment fixups



commit 655ffeadd53833d96a25a70261b31c60d6f0ac6d
Author: Chelsea H. Komlo <chelsea.komlo@xxxxxxxxx>
Date:   Mon Nov 28 13:00:38 2016 -0500

    comment fixups
---
 src/or/connection.c | 2 +-
 src/or/main.c       | 7 +++----
 src/or/or.h         | 2 +-
 3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/or/connection.c b/src/or/connection.c
index 5b22594..7e0ee45 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 0d4da65..24b209c 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 00031a8..600bd9d 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;

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits