aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/unit_tester/tests/test_pool.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-03-24 17:46:29 +0100
committerTobias Brunner <tobias@strongswan.org>2010-03-24 18:54:26 +0100
commit58f86d0f0fea14383c1836aa37a21edd38ad2e47 (patch)
treeede2acd2e57eee75cab28253f76f670c4abf2ad6 /src/libcharon/plugins/unit_tester/tests/test_pool.c
parent567d3f14639f769b1b2a6ba4dd327ef0b4960c06 (diff)
downloadstrongswan-58f86d0f0fea14383c1836aa37a21edd38ad2e47.tar.bz2
strongswan-58f86d0f0fea14383c1836aa37a21edd38ad2e47.tar.xz
Changed all usages of lib->attributes to hydra->attributes.
Diffstat (limited to 'src/libcharon/plugins/unit_tester/tests/test_pool.c')
-rw-r--r--src/libcharon/plugins/unit_tester/tests/test_pool.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libcharon/plugins/unit_tester/tests/test_pool.c b/src/libcharon/plugins/unit_tester/tests/test_pool.c
index 69a9e534f..a68246fff 100644
--- a/src/libcharon/plugins/unit_tester/tests/test_pool.c
+++ b/src/libcharon/plugins/unit_tester/tests/test_pool.c
@@ -17,6 +17,7 @@
#include <library.h>
#include <threading/thread.h>
+#include <hydra.h>
#define ALLOCS 1000
#define THREADS 20
@@ -39,8 +40,8 @@ static void* testing(void *thread)
/* allocate addresses */
for (i = 0; i < ALLOCS; i++)
{
- addr[i] = lib->attributes->acquire_address(lib->attributes,
- "test", id[i], NULL);
+ addr[i] = hydra->attributes->acquire_address(hydra->attributes,
+ "test", id[i], NULL);
if (!addr[i])
{
return (void*)FALSE;
@@ -50,8 +51,8 @@ static void* testing(void *thread)
/* release addresses */
for (i = 0; i < ALLOCS; i++)
{
- lib->attributes->release_address(lib->attributes,
- "test", addr[i], id[i]);
+ hydra->attributes->release_address(hydra->attributes,
+ "test", addr[i], id[i]);
}
/* cleanup */