[or-cvs] r9307: apparently i think of comments with no whitespace around the (tor/trunk/src/common)

arma at seul.org arma at seul.org
Tue Jan 9 00:57:37 UTC 2007


Author: arma
Date: 2007-01-08 19:57:36 -0500 (Mon, 08 Jan 2007)
New Revision: 9307

Modified:
   tor/trunk/src/common/tortls.c
Log:
apparently i think of comments with no whitespace around them as
"read this if you don't understand the code and want some help."
which is not the same as "hey, you think you understand this code,
but you don't."


Modified: tor/trunk/src/common/tortls.c
===================================================================
--- tor/trunk/src/common/tortls.c	2007-01-09 00:50:50 UTC (rev 9306)
+++ tor/trunk/src/common/tortls.c	2007-01-09 00:57:36 UTC (rev 9307)
@@ -871,11 +871,13 @@
   unsigned long r, w;
   r = BIO_number_read(SSL_get_rbio(tls->ssl));
   w = BIO_number_written(SSL_get_wbio(tls->ssl));
+
   /* We are ok with letting these unsigned ints go "negative" here:
    * If we wrapped around, this should still give us the right answer, unless
    * we wrapped around by more than ULONG_MAX since the last time we called
    * this function.
    */
+
   *n_read = (size_t)(r - tls->last_read_count);
   *n_written = (size_t)(w - tls->last_write_count);
   tls->last_read_count = r;



More information about the tor-commits mailing list