]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix typos
authorDimitris Apostolou <dimitris.apostolou@icloud.com>
Sat, 4 Feb 2023 22:36:37 +0000 (00:36 +0200)
committerDimitris Apostolou <dimitris.apostolou@icloud.com>
Sat, 4 Feb 2023 22:36:37 +0000 (00:36 +0200)
src/feature/relay/onion_queue.c
src/lib/math/prob_distr.c
src/lib/math/stats.h

index b844aefcd13c2328876aacb46477994774ecca57..f3f4b169f409c244a14694c24fe9dd9530c8d758 100644 (file)
@@ -115,7 +115,7 @@ get_onion_queue_max_delay(const or_options_t *options)
 
 /**
  * We combine ntorv3 and ntor into the same queue, so we must
- * use this function to covert the cell type to a queue index.
+ * use this function to convert the cell type to a queue index.
  */
 static inline uint16_t
 onionskin_type_to_queue(uint16_t type)
index a57fc1020c915ad18db032c222643c8251b72e60..9e60b9f37a9e37a58a01e4863f30d193bcd31a77 100644 (file)
@@ -54,7 +54,7 @@
 
 #ifndef COCCI
 /** Declare a function that downcasts from a generic dist struct to the actual
- *  subtype probablity distribution it represents. */
+ *  subtype probability distribution it represents. */
 #define DECLARE_PROB_DISTR_DOWNCAST_FN(name) \
   static inline                           \
   const struct name##_t *                             \
index 14315a2506aea5fb3f7d770dfb7846b627c78f69..7acc6fa43d740ef05a472a916c32aba80df0c167 100644 (file)
@@ -25,7 +25,7 @@ n_count_ewma_double(double avg, double value, uint64_t N)
   /* If the average was not previously computed, return value.
    * The less than is because we have stupid C warning flags that
    * prevent exact comparison to 0.0, so we can't do an exact
-   * check for unitialized double values. Yay pedantry!
+   * check for uninitialized double values. Yay pedantry!
    * Love it when it introduces surprising edge case bugs like
    * this will. */
   if (avg < 0.0000002)