pthread: Fix pthread_rwlock_init return error

The return should be positive like in other parts of pthread code
This commit is contained in:
Alan C. Assis
2021-03-30 14:14:46 -03:00
committed by Xiang Xiao
parent bf88e6d250
commit 72bc595afb
+1 -1
View File
@@ -55,7 +55,7 @@ int pthread_rwlock_init(FAR pthread_rwlock_t *lock,
if (attr != NULL)
{
return -ENOSYS;
return ENOSYS;
}
lock->num_readers = 0;