imc/imv cosmetics
This commit is contained in:
@@ -41,10 +41,11 @@ plugin_t *tnc_imc_plugin_create()
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
tnc_config = lib->settings->get_str(lib->settings,
|
|
||||||
"charon.plugins.tnc-imc.tnc_config", "/etc/tnc_config");
|
|
||||||
pref_lang = lib->settings->get_str(lib->settings,
|
pref_lang = lib->settings->get_str(lib->settings,
|
||||||
"charon.plugins.tnc-imc.preferred_language", "en");
|
"charon.plugins.tnc-imc.preferred_language", "en");
|
||||||
|
tnc_config = lib->settings->get_str(lib->settings,
|
||||||
|
"charon.plugins.tnc-imc.tnc_config", "/etc/tnc_config");
|
||||||
|
|
||||||
imc_count = libtnc_imc_load_config(tnc_config);
|
imc_count = libtnc_imc_load_config(tnc_config);
|
||||||
if (imc_count < 0)
|
if (imc_count < 0)
|
||||||
{
|
{
|
||||||
@@ -54,7 +55,8 @@ plugin_t *tnc_imc_plugin_create()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DBG1(DBG_IKE, "loaded %d TNC IMC%s", imc_count, (imc_count > 1)? "s":"");
|
DBG1(DBG_IKE, "loaded %d TNC IMC%s", imc_count,
|
||||||
|
(imc_count == 1) ? "":"s");
|
||||||
libtnc_tncc_PreferredLanguage(pref_lang);
|
libtnc_tncc_PreferredLanguage(pref_lang);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,8 @@ plugin_t *tnc_imv_plugin_create()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
DBG1(DBG_IKE, "loaded %d TNC IMV%s", imv_count, (imv_count > 1)? "s":"");
|
DBG1(DBG_IKE, "loaded %d TNC IMV%s", imv_count,
|
||||||
|
(imv_count == 1) ? "":"s");
|
||||||
}
|
}
|
||||||
|
|
||||||
return &this->plugin;
|
return &this->plugin;
|
||||||
|
|||||||
Reference in New Issue
Block a user