diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2010-11-04 16:19:39 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2010-11-09 20:43:50 +0100 |
commit | a816f1f588a37c32f0d4f162c005ff4df94872e6 (patch) | |
tree | 040804994f5d4355c05660da4c3aba3534ddd4fa /src/libcharon/plugins/tnc_imc | |
parent | 1888dd6bd5e875a3d45cd708ad9e3829f5769baa (diff) | |
download | strongswan-a816f1f588a37c32f0d4f162c005ff4df94872e6.tar.bz2 strongswan-a816f1f588a37c32f0d4f162c005ff4df94872e6.tar.xz |
cleaned up whitespace
Diffstat (limited to 'src/libcharon/plugins/tnc_imc')
-rw-r--r-- | src/libcharon/plugins/tnc_imc/tnc_imc.c | 4 | ||||
-rw-r--r-- | src/libcharon/plugins/tnc_imc/tnc_imc_plugin.c | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/src/libcharon/plugins/tnc_imc/tnc_imc.c b/src/libcharon/plugins/tnc_imc/tnc_imc.c index 6984e580e..60f907a8d 100644 --- a/src/libcharon/plugins/tnc_imc/tnc_imc.c +++ b/src/libcharon/plugins/tnc_imc/tnc_imc.c @@ -86,7 +86,7 @@ imc_t* tnc_imc_create(char* name, char *filename, TNC_IMCID id) /* we do not store or free dlopen() handles, leak_detective requires * the modules to keep loaded until leak report */ - + this->public.initialize = dlsym(handle, "TNC_IMC_Initialize"); if (!this->public.initialize) { @@ -105,7 +105,7 @@ imc_t* tnc_imc_create(char* name, char *filename, TNC_IMCID id) free(this); return NULL; } - this->public.receive_message = + this->public.receive_message = dlsym(handle, "TNC_IMC_ReceiveMessage"); this->public.batch_ending = dlsym(handle, "TNC_IMC_BatchEnding"); diff --git a/src/libcharon/plugins/tnc_imc/tnc_imc_plugin.c b/src/libcharon/plugins/tnc_imc/tnc_imc_plugin.c index 8348c5da9..1feedf93a 100644 --- a/src/libcharon/plugins/tnc_imc/tnc_imc_plugin.c +++ b/src/libcharon/plugins/tnc_imc/tnc_imc_plugin.c @@ -45,7 +45,6 @@ plugin_t *tnc_imc_plugin_create() char *tnc_config, *pref_lang, *name, *filename; tnc_imc_plugin_t *this; imc_t *imc; - INIT(this, .plugin = { @@ -64,15 +63,15 @@ plugin_t *tnc_imc_plugin_create() if (imc) { /* Initialize the module */ - if (imc->initialize(next_id, TNC_IFIMC_VERSION_1, TNC_IFIMC_VERSION_1, + if (imc->initialize(next_id, TNC_IFIMC_VERSION_1, TNC_IFIMC_VERSION_1, &version) != TNC_RESULT_SUCCESS) - { + { DBG1(DBG_TNC, "could not initialize IMC '%s'\n", imc->get_name(imc)); imc->destroy(imc); } else - { + { charon->imcs->insert_last(charon->imcs, imc); next_id++; } |