mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 06:48:05 +01:00
Rename packed_cell_alloc() --> _new().
This commit is contained in:
parent
3327a0a61c
commit
09c84b50e7
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue