cleaned up whitespace

This commit is contained in:
Andreas Steffen
2010-11-09 20:43:50 +01:00
parent 1888dd6bd5
commit a816f1f588
6 changed files with 11 additions and 12 deletions
+2 -2
View File
@@ -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 /* we do not store or free dlopen() handles, leak_detective requires
* the modules to keep loaded until leak report */ * the modules to keep loaded until leak report */
this->public.initialize = dlsym(handle, "TNC_IMC_Initialize"); this->public.initialize = dlsym(handle, "TNC_IMC_Initialize");
if (!this->public.initialize) if (!this->public.initialize)
{ {
@@ -105,7 +105,7 @@ imc_t* tnc_imc_create(char* name, char *filename, TNC_IMCID id)
free(this); free(this);
return NULL; return NULL;
} }
this->public.receive_message = this->public.receive_message =
dlsym(handle, "TNC_IMC_ReceiveMessage"); dlsym(handle, "TNC_IMC_ReceiveMessage");
this->public.batch_ending = this->public.batch_ending =
dlsym(handle, "TNC_IMC_BatchEnding"); dlsym(handle, "TNC_IMC_BatchEnding");
@@ -45,7 +45,6 @@ plugin_t *tnc_imc_plugin_create()
char *tnc_config, *pref_lang, *name, *filename; char *tnc_config, *pref_lang, *name, *filename;
tnc_imc_plugin_t *this; tnc_imc_plugin_t *this;
imc_t *imc; imc_t *imc;
INIT(this, INIT(this,
.plugin = { .plugin = {
@@ -64,15 +63,15 @@ plugin_t *tnc_imc_plugin_create()
if (imc) if (imc)
{ {
/* Initialize the module */ /* 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) &version) != TNC_RESULT_SUCCESS)
{ {
DBG1(DBG_TNC, "could not initialize IMC '%s'\n", DBG1(DBG_TNC, "could not initialize IMC '%s'\n",
imc->get_name(imc)); imc->get_name(imc));
imc->destroy(imc); imc->destroy(imc);
} }
else else
{ {
charon->imcs->insert_last(charon->imcs, imc); charon->imcs->insert_last(charon->imcs, imc);
next_id++; next_id++;
} }
+1 -1
View File
@@ -99,7 +99,7 @@ imv_t* tnc_imv_create(char *name, char *filename, TNC_IMVID id)
free(this); free(this);
return NULL; return NULL;
} }
this->public.receive_message = this->public.receive_message =
dlsym(handle, "TNC_IMV_ReceiveMessage"); dlsym(handle, "TNC_IMV_ReceiveMessage");
this->public.batch_ending = this->public.batch_ending =
dlsym(handle, "TNC_IMV_BatchEnding"); dlsym(handle, "TNC_IMV_BatchEnding");
@@ -61,15 +61,15 @@ plugin_t *tnc_imv_plugin_create()
if (imv) if (imv)
{ {
/* Initialize the module */ /* 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) &version) != TNC_RESULT_SUCCESS)
{ {
DBG1(DBG_TNC, "could not initialize IMV '%s'\n", DBG1(DBG_TNC, "could not initialize IMV '%s'\n",
imv->get_name(imv)); imv->get_name(imv));
imv->destroy(imv); imv->destroy(imv);
} }
else else
{ {
charon->imvs->insert_last(charon->imvs, imv); charon->imvs->insert_last(charon->imvs, imv);
next_id++; next_id++;
} }
+1 -1
View File
@@ -58,7 +58,7 @@ struct imc_t {
/** /**
* The TNC Client calls this function to indicate that an Integrity Check * 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 imcID IMC ID assigned by TNCC
* @param connectionID Network connection ID assigned by TNCC * @param connectionID Network connection ID assigned by TNCC
+1 -1
View File
@@ -33,7 +33,7 @@ struct imv_t {
* identifier that the IMV must use when calling TNC Server callback functions. * identifier that the IMV must use when calling TNC Server callback functions.
* *
* @param imvID IMV ID assigned by TNCS * @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 maxVersion Maximum API version supported by TNCS
* @param OutActualVersion Mutually supported API version number * @param OutActualVersion Mutually supported API version number
* @result TNC result code * @result TNC result code