From b9526c7ae0db83a3785c8127a334b4b26c6d7277 Mon Sep 17 00:00:00 2001 From: Peter Harper Date: Thu, 20 Feb 2025 19:36:58 +0000 Subject: [PATCH] coap_threadsafe_internal.h: Fix coap_lock_invert. This code fails to compile if COAP_THREAD_SAFE is false as the macro parameter is "alt_lock" not "func". --- include/coap3/coap_threadsafe_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/coap3/coap_threadsafe_internal.h b/include/coap3/coap_threadsafe_internal.h index 9cb33176..4b588987 100644 --- a/include/coap3/coap_threadsafe_internal.h +++ b/include/coap3/coap_threadsafe_internal.h @@ -567,7 +567,7 @@ typedef coap_mutex_t coap_lock_t; * @param failed Code to execute on lock failure. * */ -#define coap_lock_invert(c,alt_lock,failed) func +#define coap_lock_invert(c,alt_lock,failed) alt_lock #endif /* ! COAP_THREAD_SAFE */