From 3b0e64d56ee31e3a9f512f4f27ca55aa91206a2a Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Tue, 16 Nov 2010 09:09:39 +0100 Subject: [PATCH] imv_list consists of linked imv_t instances --- src/libcharon/plugins/tnc_imv/tnc_imv_recommendations.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/libcharon/plugins/tnc_imv/tnc_imv_recommendations.c b/src/libcharon/plugins/tnc_imv/tnc_imv_recommendations.c index 846c1ce2b..c3146960a 100644 --- a/src/libcharon/plugins/tnc_imv/tnc_imv_recommendations.c +++ b/src/libcharon/plugins/tnc_imv/tnc_imv_recommendations.c @@ -16,6 +16,7 @@ #include #include #include +#include #include typedef struct private_tnc_imv_recommendations_t private_tnc_imv_recommendations_t; @@ -238,7 +239,7 @@ recommendations_t* tnc_imv_recommendations_create(linked_list_t *imv_list) private_tnc_imv_recommendations_t *this; recommendation_entry_t *entry; enumerator_t *enumerator; - TNC_IMVID id; + imv_t *imv; INIT(this, .public = { @@ -250,10 +251,10 @@ recommendations_t* tnc_imv_recommendations_create(linked_list_t *imv_list) ); enumerator = imv_list->create_enumerator(imv_list); - while (enumerator->enumerate(enumerator, &id)) + while (enumerator->enumerate(enumerator, &imv)) { entry = malloc_thing(recommendation_entry_t); - entry->id = id; + entry->id = imv->get_id(imv); entry->rec = TNC_IMV_ACTION_RECOMMENDATION_NO_RECOMMENDATION; entry->eval = TNC_IMV_EVALUATION_RESULT_DONT_KNOW; this->recs->insert_last(this->recs, entry);