aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/leak_detective.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-09-04 14:50:23 +0200
committerMartin Willi <martin@strongswan.org>2009-09-04 14:50:23 +0200
commit323f9f990fb28583bfaaaad04f9934c0f0e62052 (patch)
tree99a9f789388077bd6b2d51516d45b5d0112e3c9c /src/libstrongswan/utils/leak_detective.c
parent7daf5226b74e14a6e0f1a888b0be26f3d246f9f8 (diff)
downloadstrongswan-323f9f990fb28583bfaaaad04f9934c0f0e62052.tar.bz2
strongswan-323f9f990fb28583bfaaaad04f9934c0f0e62052.tar.xz
replaces four spaces by tabs, where appropriate
Diffstat (limited to 'src/libstrongswan/utils/leak_detective.c')
-rw-r--r--src/libstrongswan/utils/leak_detective.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/libstrongswan/utils/leak_detective.c b/src/libstrongswan/utils/leak_detective.c
index bae22f172..3fd4cf2b4 100644
--- a/src/libstrongswan/utils/leak_detective.c
+++ b/src/libstrongswan/utils/leak_detective.c
@@ -303,12 +303,12 @@ void *malloc_hook(size_t bytes, const void *caller)
memory_header_t *hdr;
memory_tail_t *tail;
pthread_t thread_id = pthread_self();
- int oldpolicy;
- struct sched_param oldparams, params;
+ int oldpolicy;
+ struct sched_param oldparams, params;
- pthread_getschedparam(thread_id, &oldpolicy, &oldparams);
+ pthread_getschedparam(thread_id, &oldpolicy, &oldparams);
- params.__sched_priority = sched_get_priority_max(SCHED_FIFO);
+ params.__sched_priority = sched_get_priority_max(SCHED_FIFO);
pthread_setschedparam(thread_id, SCHED_FIFO, &params);
count_malloc++;
@@ -346,10 +346,10 @@ void free_hook(void *ptr, const void *caller)
{
memory_header_t *hdr;
memory_tail_t *tail;
- backtrace_t *backtrace;
+ backtrace_t *backtrace;
pthread_t thread_id = pthread_self();
- int oldpolicy;
- struct sched_param oldparams, params;
+ int oldpolicy;
+ struct sched_param oldparams, params;
/* allow freeing of NULL */
if (ptr == NULL)
@@ -361,7 +361,7 @@ void free_hook(void *ptr, const void *caller)
pthread_getschedparam(thread_id, &oldpolicy, &oldparams);
- params.__sched_priority = sched_get_priority_max(SCHED_FIFO);
+ params.__sched_priority = sched_get_priority_max(SCHED_FIFO);
pthread_setschedparam(thread_id, SCHED_FIFO, &params);
count_free++;
@@ -405,8 +405,8 @@ void *realloc_hook(void *old, size_t bytes, const void *caller)
memory_tail_t *tail;
backtrace_t *backtrace;
pthread_t thread_id = pthread_self();
- int oldpolicy;
- struct sched_param oldparams, params;
+ int oldpolicy;
+ struct sched_param oldparams, params;
/* allow reallocation of NULL */
if (old == NULL)