tnc_imc/tnc_imv cosmetics
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 7 Nov 2010 11:16:52 +0000 (12:16 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 9 Nov 2010 19:43:50 +0000 (20:43 +0100)
src/libcharon/plugins/tnc_imc/tnc_imc.c
src/libcharon/plugins/tnc_imc/tnc_imc_manager.c
src/libcharon/plugins/tnc_imv/tnc_imv.c
src/libcharon/plugins/tnc_imv/tnc_imv_manager.c

index 29f34d9..7c1b7b5 100644 (file)
@@ -22,6 +22,9 @@
 
 typedef struct private_tnc_imc_t private_tnc_imc_t;
 
+/**
+ * Private data of an imv_t object.
+ */
 struct private_tnc_imc_t {
 
        /**
@@ -72,8 +75,11 @@ METHOD(imc_t, set_message_types, void,
        private_tnc_imc_t *this, TNC_MessageTypeList supported_types,
                                                         TNC_UInt32 type_count)
 {
+       /* Free an existing MessageType list */
        free(this->supported_types);
        this->supported_types = NULL;
+
+       /* Store the new MessageType list */
        this->type_count = type_count;
        if (type_count && supported_types)
        {
index 8e05644..f1d0f21 100644 (file)
@@ -24,6 +24,9 @@
 
 typedef struct private_tnc_imc_manager_t private_tnc_imc_manager_t;
 
+/**
+ * Private data of an imc_manager_t object.
+ */
 struct private_tnc_imc_manager_t {
 
        /**
index 3dfc50b..2eca072 100644 (file)
@@ -22,6 +22,9 @@
 
 typedef struct private_tnc_imv_t private_tnc_imv_t;
 
+/**
+ * Private data of an imv_t object.
+ */
 struct private_tnc_imv_t {
 
        /**
@@ -72,8 +75,11 @@ METHOD(imv_t, set_message_types, void,
        private_tnc_imv_t *this, TNC_MessageTypeList supported_types,
                                                         TNC_UInt32 type_count)
 {
+       /* Free an existing MessageType list */
        free(this->supported_types);
        this->supported_types = NULL;
+
+       /* Store the new MessageType list */
        this->type_count = type_count;
        if (type_count && supported_types)
        {
index fa6d35d..08bc093 100644 (file)
@@ -24,6 +24,9 @@
 
 typedef struct private_tnc_imv_manager_t private_tnc_imv_manager_t;
 
+/**
+ * Private data of an imv_manager_t object.
+ */
 struct private_tnc_imv_manager_t {
 
        /**