]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 29f34d9392e4f9ee6f6a365710267fbf10660b27..7c1b7b5b2989ae3e5b152978f443ca46da60e184 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 8e0564446e6ab6dce720d660bc82de33ec504671..f1d0f2101a7f350a17a40cdc7a7d86a032f87604 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 3dfc50b4fed170aed7ffffa61276475226488d7b..2eca072bb557b4edb27c4413c6d062c2fa6fbff7 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 fa6d35d412185ccb81e0fd8f8502900559cf461b..08bc09392c2aac55a9f34db06806b1f54774c439 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 {
 
        /**