diff options
author | Linus Nordberg <linus@torproject.org> | 2012-09-03 14:49:31 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-09-06 11:37:00 -0400 |
commit | 09c84b50e71a7c65f1b891e396bb9ad811588dad (patch) | |
tree | 2316a5d45547b3916fe91cea9996b04c63b3dffa | |
parent | 3327a0a61cfaca07c3c20533d23a2599735e094f (diff) | |
download | tor-09c84b50e71a7c65f1b891e396bb9ad811588dad.tar tor-09c84b50e71a7c65f1b891e396bb9ad811588dad.tar.gz |
Rename packed_cell_alloc() --> _new().
-rw-r--r-- | src/or/relay.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/relay.c b/src/or/relay.c index 90129660b..169286ea5 100644 --- a/src/or/relay.c +++ b/src/or/relay.c @@ -1835,7 +1835,7 @@ packed_cell_free_unchecked(packed_cell_t *cell) /** Allocate and return a new packed_cell_t. */ static INLINE packed_cell_t * -packed_cell_alloc(void) +packed_cell_new(void) { ++total_cells_allocated; return mp_pool_get(cell_pool); @@ -1864,7 +1864,7 @@ dump_cell_pool_usage(int severity) static INLINE packed_cell_t * packed_cell_copy(const cell_t *cell) { - packed_cell_t *c = packed_cell_alloc(); + packed_cell_t *c = packed_cell_new(); cell_pack(c, cell); c->next = NULL; return c; |