[or-cvs] Elaborate on buf_shrink comment.

Nick Mathewson nickm at seul.org
Mon May 2 23:41:41 UTC 2005


Update of /home/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv27078/src/or

Modified Files:
	buffers.c 
Log Message:
Elaborate on buf_shrink comment.

Index: buffers.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/buffers.c,v
retrieving revision 1.149
retrieving revision 1.150
diff -u -d -r1.149 -r1.150
--- buffers.c	2 May 2005 23:39:09 -0000	1.149
+++ buffers.c	2 May 2005 23:41:39 -0000	1.150
@@ -244,10 +244,11 @@
 #define buf_shrink_if_underfull(buf) do {} while (0)
 #endif
 
-/** Resize buf so it won't hold extra memory that we haven't
- * been using lately. Try to shrink the buf until it is the
- * largest factor of two that can contain highwater, but never
- * smaller than MIN_LAZY_SHRINK_SIZE.
+/** Resize buf so it won't hold extra memory that we haven't been
+ * using lately (that is, since the last time we called buf_shrink).
+ * Try to shrink the buf until it is the largest factor of two that
+ * can contain <b>buf</b>-&gt;highwater, but never smaller than
+ * MIN_LAZY_SHRINK_SIZE.
  */
 void
 buf_shrink(buf_t *buf)



More information about the tor-commits mailing list