Skip to content

Commit

Permalink
coap_threadsafe_internal.h: Fix coap_lock_invert.
Browse files Browse the repository at this point in the history
This code fails to compile if COAP_THREAD_SAFE is false as the macro
parameter is "alt_lock" not "func".
  • Loading branch information
peterharperuk authored and mrdeep1 committed Feb 21, 2025
1 parent c4d933a commit b9526c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/coap3/coap_threadsafe_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down

0 comments on commit b9526c7

Please sign in to comment.