diff options
author | Martin Willi <martin@strongswan.org> | 2006-04-20 13:12:35 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-04-20 13:12:35 +0000 |
commit | fcfeb3220fbd4e25b0ac63c541c18e8ae1f30766 (patch) | |
tree | 7ffba119beddd17e8b5b304a60856c1d21660f35 /Source/lib/utils/leak_detective.c | |
parent | 6b3292da8570edaab0e8e7dd5b2babe0fe983dd2 (diff) | |
download | strongswan-fcfeb3220fbd4e25b0ac63c541c18e8ae1f30766.tar.bz2 strongswan-fcfeb3220fbd4e25b0ac63c541c18e8ae1f30766.tar.xz |
- fixed doxygen build
- seperates now in lib and charon
Diffstat (limited to 'Source/lib/utils/leak_detective.c')
-rw-r--r-- | Source/lib/utils/leak_detective.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/lib/utils/leak_detective.c b/Source/lib/utils/leak_detective.c index 72b14bb46..06d8916ac 100644 --- a/Source/lib/utils/leak_detective.c +++ b/Source/lib/utils/leak_detective.c @@ -1,7 +1,7 @@ /** * @file leak_detective.c * - * @brief Implementation of leak_detective_t. + * @brief Allocation hooks to find memory leaks. */ /* @@ -31,7 +31,6 @@ #include <dlfcn.h> #include <unistd.h> #include <syslog.h> -#define __USE_GNU /* needed for recursiv mutex initializer */ #include <pthread.h> #include "leak_detective.h" @@ -120,8 +119,7 @@ static bool installed = FALSE; /** * Mutex to exclusivly uninstall hooks, access heap list */ -static pthread_mutex_t mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; - +static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; /** |