From: Andreas Steffen Date: Thu, 4 Nov 2010 15:19:39 +0000 (+0100) Subject: cleaned up whitespace X-Git-Tag: 4.5.1~563 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a816f1f588a37c32f0d4f162c005ff4df94872e6;p=thirdparty%2Fstrongswan.git cleaned up whitespace --- diff --git a/src/libcharon/plugins/tnc_imc/tnc_imc.c b/src/libcharon/plugins/tnc_imc/tnc_imc.c index 6984e580ec..60f907a8d3 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 8348c5da9b..1feedf93ad 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++; } diff --git a/src/libcharon/plugins/tnc_imv/tnc_imv.c b/src/libcharon/plugins/tnc_imv/tnc_imv.c index 6982bd37eb..27af2ace09 100644 --- a/src/libcharon/plugins/tnc_imv/tnc_imv.c +++ b/src/libcharon/plugins/tnc_imv/tnc_imv.c @@ -99,7 +99,7 @@ imv_t* tnc_imv_create(char *name, char *filename, TNC_IMVID id) free(this); return NULL; } - this->public.receive_message = + this->public.receive_message = dlsym(handle, "TNC_IMV_ReceiveMessage"); this->public.batch_ending = dlsym(handle, "TNC_IMV_BatchEnding"); diff --git a/src/libcharon/plugins/tnc_imv/tnc_imv_plugin.c b/src/libcharon/plugins/tnc_imv/tnc_imv_plugin.c index 5a43ad82b0..34f5b76192 100644 --- a/src/libcharon/plugins/tnc_imv/tnc_imv_plugin.c +++ b/src/libcharon/plugins/tnc_imv/tnc_imv_plugin.c @@ -61,15 +61,15 @@ plugin_t *tnc_imv_plugin_create() if (imv) { /* Initialize the module */ - if (imv->initialize(next_id, TNC_IFIMV_VERSION_1, TNC_IFIMV_VERSION_1, + if (imv->initialize(next_id, TNC_IFIMV_VERSION_1, TNC_IFIMV_VERSION_1, &version) != TNC_RESULT_SUCCESS) - { + { DBG1(DBG_TNC, "could not initialize IMV '%s'\n", imv->get_name(imv)); imv->destroy(imv); } else - { + { charon->imvs->insert_last(charon->imvs, imv); next_id++; } diff --git a/src/libcharon/tnc/imc/imc.h b/src/libcharon/tnc/imc/imc.h index a4bef61f97..8c03ee6b9d 100644 --- a/src/libcharon/tnc/imc/imc.h +++ b/src/libcharon/tnc/imc/imc.h @@ -58,7 +58,7 @@ struct imc_t { /** * The TNC Client calls this function to indicate that an Integrity Check - * Handshake is beginning and solicit messages from IMCs for the first batch. + * Handshake is beginning and solicit messages from IMCs for the first batch. * * @param imcID IMC ID assigned by TNCC * @param connectionID Network connection ID assigned by TNCC diff --git a/src/libcharon/tnc/imv/imv.h b/src/libcharon/tnc/imv/imv.h index 8b598d5000..6d4769f7de 100644 --- a/src/libcharon/tnc/imv/imv.h +++ b/src/libcharon/tnc/imv/imv.h @@ -33,7 +33,7 @@ struct imv_t { * identifier that the IMV must use when calling TNC Server callback functions. * * @param imvID IMV ID assigned by TNCS - * @param minVersion Minimum API version supported + * @param minVersion Minimum API version supported * @param maxVersion Maximum API version supported by TNCS * @param OutActualVersion Mutually supported API version number * @result TNC result code