From e80a645ed358593f33cb16ceacb75e3a1c321d7d Mon Sep 17 00:00:00 2001 From: stadlero <47506268+stadlero@users.noreply.github.com> Date: Mon, 3 Nov 2025 22:14:11 +0100 Subject: [PATCH] buffer: Fix csp_buffer_get_always not found PR #872 made csp_buffer_get_always an internal function. This commit adds a forward declaration of the function in the test file to still be able to test it. --- src/buffer.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/buffer.c b/src/buffer.c index 1c60d70..c172e83 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -7,6 +7,12 @@ #include #include +/* csp_buffer_get_always() is now an internal function + * and not exposed in the public API, so we need to + * declare it here for testing purposes. + */ +csp_packet_t * csp_buffer_get_always(void); + static void *setup(void) { csp_init();