mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-18 21:49:05 +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
c4d933a969
commit
b9526c7ae0
1 file changed
+1
-1
@@ -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 */
|
||||
|
||||
|
||||
Reference in new issue
Block a user