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".
This commit is contained in:
Peter Harper authored and Jon Shallow committed 2025-02-21 08:50:42 +00:00
1 parent c4d933a969
commit b9526c7ae0
1 file changed
+1 -1
+1 -1
View File
@@ -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 */