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 2026-06-04 16:45:17 +01:00
1 parent 966f73999f
commit a8a72eb024
1 file changed
+1 -1
+1 -1
View File
@@ -738,7 +738,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 */