]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Rename packed_cell_alloc() --> _new().
authorLinus Nordberg <linus@torproject.org>
Mon, 3 Sep 2012 12:49:31 +0000 (14:49 +0200)
committerNick Mathewson <nickm@torproject.org>
Thu, 6 Sep 2012 15:37:00 +0000 (11:37 -0400)
src/or/relay.c

index 90129660b414cacd7ef8b10d9f7005be4f2da440..169286ea5defc573ea05adc5d971780f2824e6fb 100644 (file)
@@ -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;