diff options
author | Tobias Brunner <tobias@strongswan.org> | 2010-07-15 14:49:41 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2010-09-02 19:04:18 +0200 |
commit | bb381e26c6d132fd0d29641cdb75335f52cae309 (patch) | |
tree | 982649d5835e392b2a0f866ac0efc296f0f6e720 /src/libcharon/daemon.c | |
parent | e18556e9e9e5d870a9846efb1d0a1edd1638fafa (diff) | |
download | strongswan-bb381e26c6d132fd0d29641cdb75335f52cae309.tar.bz2 strongswan-bb381e26c6d132fd0d29641cdb75335f52cae309.tar.xz |
Refer to scheduler and processor via lib and not hydra.
Diffstat (limited to 'src/libcharon/daemon.c')
-rw-r--r-- | src/libcharon/daemon.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libcharon/daemon.c b/src/libcharon/daemon.c index f05870d61..13ed33469 100644 --- a/src/libcharon/daemon.c +++ b/src/libcharon/daemon.c @@ -32,7 +32,6 @@ #include "daemon.h" #include <library.h> -#include <hydra.h> #include <config/proposal.h> #include <kernel/kernel_handler.h> @@ -101,7 +100,7 @@ static void dbg_bus(debug_t group, level_t level, char *fmt, ...) static void destroy(private_daemon_t *this) { /* terminate all idle threads */ - hydra->processor->set_threads(hydra->processor, 0); + lib->processor->set_threads(lib->processor, 0); /* close all IKE_SAs */ if (this->public.ike_sa_manager) @@ -178,7 +177,7 @@ METHOD(daemon_t, start, void, private_daemon_t *this) { /* start the engine, go multithreaded */ - hydra->processor->set_threads(hydra->processor, + lib->processor->set_threads(lib->processor, lib->settings->get_int(lib->settings, "charon.threads", DEFAULT_THREADS)); } |