mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-29 18:07:08 +03:00
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:
1 parent
966f73999f
commit
a8a72eb024
1 file changed
+1
-1
@@ -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 */
|
||||
|
||||
|
||||
Reference in new issue
Block a user