diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-04-15 12:20:14 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-04-15 12:20:14 -0400 |
commit | 12e26a6e7691d1c7dddfe07c8a72ffac6d586707 (patch) | |
tree | fc48ad2d24e2c955229a10bc10533776cebdfc00 /src/common/memarea.c | |
parent | 8c6b528b00a82f6fd027d543ba8257dfa2fc97ef (diff) | |
download | tor-12e26a6e7691d1c7dddfe07c8a72ffac6d586707.tar.gz tor-12e26a6e7691d1c7dddfe07c8a72ffac6d586707.zip |
Disambiguate: Avoid defining two static functions called chunk_free_unchecked
Diffstat (limited to 'src/common/memarea.c')
-rw-r--r-- | src/common/memarea.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/memarea.c b/src/common/memarea.c index 0a3fd009b0..61117288c3 100644 --- a/src/common/memarea.c +++ b/src/common/memarea.c @@ -132,7 +132,7 @@ alloc_chunk(size_t sz) /** Release <b>chunk</b> from a memarea. */ static void -chunk_free_unchecked(memarea_chunk_t *chunk) +memarea_chunk_free_unchecked(memarea_chunk_t *chunk) { CHECK_SENTINEL(chunk); tor_free(chunk); @@ -155,7 +155,7 @@ memarea_drop_all(memarea_t *area) memarea_chunk_t *chunk, *next; for (chunk = area->first; chunk; chunk = next) { next = chunk->next_chunk; - chunk_free_unchecked(chunk); + memarea_chunk_free_unchecked(chunk); } area->first = NULL; /*fail fast on */ tor_free(area); @@ -171,7 +171,7 @@ memarea_clear(memarea_t *area) if (area->first->next_chunk) { for (chunk = area->first->next_chunk; chunk; chunk = next) { next = chunk->next_chunk; - chunk_free_unchecked(chunk); + memarea_chunk_free_unchecked(chunk); } area->first->next_chunk = NULL; } |