aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/utils/allocator.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2005-11-24 11:30:19 +0000
committerMartin Willi <martin@strongswan.org>2005-11-24 11:30:19 +0000
commit5796aa164d79b2ffaf2839b281d490be6a72d1d8 (patch)
tree4031a623426b19bf03b2c61cd73a504e218fb1fb /Source/charon/utils/allocator.c
parent95c61cb956505cdb0a91c8c8cd134dda3aac744d (diff)
downloadstrongswan-5796aa164d79b2ffaf2839b281d490be6a72d1d8.tar.bz2
strongswan-5796aa164d79b2ffaf2839b281d490be6a72d1d8.tar.xz
- typedefs changed
Diffstat (limited to 'Source/charon/utils/allocator.c')
-rw-r--r--Source/charon/utils/allocator.c10
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.