posix: fix typo in pthread_cond_init
Update the casting of the 'attr' parameter in pthread_cond_init to use the correct variable name 'att'. Thanks clang for spotting the typo. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
c080d1cb4b
commit
f412cc643d
@ -186,7 +186,7 @@ int pthread_cond_timedwait(pthread_cond_t *cv, pthread_mutex_t *mut, const struc
|
||||
int pthread_cond_init(pthread_cond_t *cvar, const pthread_condattr_t *att)
|
||||
{
|
||||
struct posix_cond *cv;
|
||||
struct posix_condattr *attr = (struct posix_condattr *)attr;
|
||||
struct posix_condattr *attr = (struct posix_condattr *)att;
|
||||
|
||||
*cvar = PTHREAD_COND_INITIALIZER;
|
||||
cv = to_posix_cond(cvar);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user