]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
tnc-imv: Add missing argument to IMV recommendations constructor
authorTobias Brunner <tobias@strongswan.org>
Fri, 10 Jan 2025 14:43:11 +0000 (15:43 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 10 Jan 2025 17:53:57 +0000 (18:53 +0100)
This avoids the following warning/error:

tnc_imv_manager.c:244:39: error: passing arguments to 'tnc_imv_recommendations_create' without a prototype is deprecated in all versions of C and is not supported in C23 [-Werror,-Wdeprecated-non-prototype]
  244 |         return tnc_imv_recommendations_create(this->imvs);
      |                                              ^

src/libtnccs/plugins/tnc_imv/tnc_imv_recommendations.h

index f7178876cfdc49b42e645509c2ed2dca5389dc73..60272978ad3079c0c1c0c908bbaff3bd677c17e1 100644 (file)
 #include <collections/linked_list.h>
 
 /**
- * Create an IMV empty recommendations instance
+ * Create an empty IMV recommendations instance
+ *
+ * @param imv_list             list of IMVs that could provide recommendations
+ * @return                             created instance
  */
-recommendations_t *tnc_imv_recommendations_create();
+recommendations_t *tnc_imv_recommendations_create(linked_list_t *imv_list);
 
 #endif /** TNC_IMV_RECOMMENDATIONS_H_ @}*/