aboutsummaryrefslogtreecommitdiff
path: root/src/or/buffers.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-08-13 13:27:32 -0400
committerNick Mathewson <nickm@torproject.org>2012-08-13 13:27:32 -0400
commitf45cde05f934ee95e0002ff7d72f7006ce156a4c (patch)
treeb8c98e0b3867ccea1f9d7a8976ee76b27d3984e6 /src/or/buffers.c
parent37d19fdfcd4bc82da3276c18b616e7c64ca0c6ab (diff)
downloadtor-f45cde05f934ee95e0002ff7d72f7006ce156a4c.tar
tor-f45cde05f934ee95e0002ff7d72f7006ce156a4c.tar.gz
Remove tor_malloc_roundup().
This function never actually did us any good, and it added a little complexity. See the changes file for more info.
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r--src/or/buffers.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index 9acc22971..a8d06cef1 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -192,8 +192,6 @@ chunk_new_with_alloc_size(size_t alloc)
freelist->lowest_length = freelist->cur_length;
++freelist->n_hit;
} else {
- /* XXXX take advantage of tor_malloc_roundup, once we know how that
- * affects freelists. */
if (freelist)
++freelist->n_alloc;
else
@@ -216,7 +214,7 @@ static INLINE chunk_t *
chunk_new_with_alloc_size(size_t alloc)
{
chunk_t *ch;
- ch = tor_malloc_roundup(&alloc);
+ ch = tor_malloc(alloc);
ch->next = NULL;
ch->datalen = 0;
ch->memlen = CHUNK_SIZE_WITH_ALLOC(alloc);