We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66b7f08 commit c85fdf4Copy full SHA for c85fdf4
newlib/libc/include/sys/lock.h
@@ -41,7 +41,7 @@ typedef struct __lock * _LOCK_T;
41
extern void __retarget_lock_init(_LOCK_T *lock);
42
#define __lock_init(lock) __retarget_lock_init(&lock)
43
extern void __retarget_lock_init_recursive(_LOCK_T *lock);
44
-#define __lock_init_recursive(lock) __retarget_lock_init_recursive(&lock)
+#define __lock_init_recursive(lock) __retarget_lock_init_recursive((_LOCK_T*)&lock)
45
extern void __retarget_lock_close(_LOCK_T lock);
46
#define __lock_close(lock) __retarget_lock_close(lock)
47
extern void __retarget_lock_close_recursive(_LOCK_T lock);
0 commit comments