]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
The attribute manager was moved from daemon_t to libstrongswan.
authorTobias Brunner <tobias@strongswan.org>
Mon, 7 Dec 2009 15:00:27 +0000 (16:00 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 7 Dec 2009 15:00:27 +0000 (16:00 +0100)
src/charon/plugins/unit_tester/tests/test_pool.c

index f9a776a820feea87dc976618f567b4d02c8dec71..109c06fda5643e859fe0e32f618f7d8d0f9f0b67 100644 (file)
@@ -17,7 +17,6 @@
 #include <pthread.h>
 
 #include <library.h>
-#include <daemon.h>
 
 #define ALLOCS 1000
 #define THREADS 20
@@ -40,8 +39,8 @@ static void* testing(void *thread)
        /* allocate addresses */
        for (i = 0; i < ALLOCS; i++)
        {
-               addr[i] = charon->attributes->acquire_address(charon->attributes,
-                                                                                                         "test", id[i], NULL);
+               addr[i] = lib->attributes->acquire_address(lib->attributes,
+                                                                                                  "test", id[i], NULL);
                if (!addr[i])
                {
                        return (void*)FALSE;
@@ -51,7 +50,8 @@ static void* testing(void *thread)
        /* release addresses */
        for (i = 0; i < ALLOCS; i++)
        {
-               charon->attributes->release_address(charon->attributes, "test", addr[i], id[i]);
+               lib->attributes->release_address(lib->attributes,
+                                                                                "test", addr[i], id[i]);
        }
 
        /* cleanup */