diff options
Diffstat (limited to 'Source/charon/utils/allocator.c')
-rw-r--r-- | Source/charon/utils/allocator.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/charon/utils/allocator.c b/Source/charon/utils/allocator.c index dcb4e4231..a56369f95 100644 --- a/Source/charon/utils/allocator.c +++ b/Source/charon/utils/allocator.c @@ -32,14 +32,14 @@ #ifdef LEAK_DETECTIVE +typedef union memory_hdr_t memory_hdr_t; + /** * Header of each allocated memory area * * Used to detect memory leaks */ -typedef union memory_hdr_u memory_hdr_t; - -union memory_hdr_u { +union memory_hdr_t { struct { /** * Filename withing memory was allocated @@ -69,9 +69,9 @@ union memory_hdr_u { * * Contains private variables of allocator_t object. */ -typedef struct private_allocator_s private_allocator_t; +typedef struct private_allocator_t private_allocator_t; -struct private_allocator_s +struct private_allocator_t { /** * Public part of an allocator_t object. |