pthread: Fix pthread_rwlock_init return error
The return should be positive like in other parts of pthread code
This commit is contained in:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user