From f412cc643d91660b7acffacdbb6e18b100fccf7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Fri, 25 Apr 2025 09:56:58 +0200 Subject: [PATCH] posix: fix typo in pthread_cond_init MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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é --- lib/posix/options/cond.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/posix/options/cond.c b/lib/posix/options/cond.c index d1fc231c94c..c93386ab539 100644 --- a/lib/posix/options/cond.c +++ b/lib/posix/options/cond.c @@ -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);