mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
pthread: Fix pthread_rwlock_init return error
The return should be positive like in other parts of pthread code
This commit is contained in:
committed by
Xiang Xiao
parent
bf88e6d250
commit
72bc595afb
@@ -55,7 +55,7 @@ int pthread_rwlock_init(FAR pthread_rwlock_t *lock,
|
||||
|
||||
if (attr != NULL)
|
||||
{
|
||||
return -ENOSYS;
|
||||
return ENOSYS;
|
||||
}
|
||||
|
||||
lock->num_readers = 0;
|
||||
|
||||
Reference in New Issue
Block a user