From 20acd64a1bb76ff2504101efb13bf0d1ecd7d058 Mon Sep 17 00:00:00 2001 From: Bartosz Bilas Date: Wed, 22 Nov 2023 19:00:03 +0100 Subject: [PATCH] doc: zbus: fix msg subscriber thread signatures Fix the thread function signatures to match k_thread_entry_t. Signed-off-by: Bartosz Bilas --- doc/services/zbus/index.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/services/zbus/index.rst b/doc/services/zbus/index.rst index 59d45317a7b..6f9378ba5c3 100644 --- a/doc/services/zbus/index.rst +++ b/doc/services/zbus/index.rst @@ -424,8 +424,11 @@ exchanges accelerometer data, for example. K_THREAD_DEFINE(subscriber_task_id, 512, subscriber_task, NULL, NULL, NULL, 3, 0, 0); ZBUS_MSG_SUBSCRIBER_DEFINE(my_msg_subscriber); - static void msg_subscriber_task(void *sub) + static void msg_subscriber_task(void *ptr1, void *ptr2, void *ptr3) { + ARG_UNUSED(ptr1); + ARG_UNUSED(ptr2); + ARG_UNUSED(ptr3); const struct zbus_channel *chan; struct acc_msg acc = {0};