Skip to content

Commit f412cc6

Browse files
committedApr 25, 2025
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>
1 parent c080d1c commit f412cc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/posix/options/cond.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ int pthread_cond_timedwait(pthread_cond_t *cv, pthread_mutex_t *mut, const struc
186186
int pthread_cond_init(pthread_cond_t *cvar, const pthread_condattr_t *att)
187187
{
188188
struct posix_cond *cv;
189-
struct posix_condattr *attr = (struct posix_condattr *)attr;
189+
struct posix_condattr *attr = (struct posix_condattr *)att;
190190

191191
*cvar = PTHREAD_COND_INITIALIZER;
192192
cv = to_posix_cond(cvar);

0 commit comments

Comments
 (0)