From: Tobias Brunner Date: Fri, 10 Jan 2025 14:43:11 +0000 (+0100) Subject: tnc-imv: Add missing argument to IMV recommendations constructor X-Git-Tag: android-2.5.3~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=227d7ef9a24b8c62d6965c1c1690252bde7c698d;p=thirdparty%2Fstrongswan.git tnc-imv: Add missing argument to IMV recommendations constructor 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); | ^ --- diff --git a/src/libtnccs/plugins/tnc_imv/tnc_imv_recommendations.h b/src/libtnccs/plugins/tnc_imv/tnc_imv_recommendations.h index f7178876cf..60272978ad 100644 --- a/src/libtnccs/plugins/tnc_imv/tnc_imv_recommendations.h +++ b/src/libtnccs/plugins/tnc_imv/tnc_imv_recommendations.h @@ -27,8 +27,11 @@ #include /** - * 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_ @}*/