From 72bc595afbb236e216360947e6c4921b762e861d Mon Sep 17 00:00:00 2001 From: "Alan C. Assis" Date: Tue, 30 Mar 2021 14:14:46 -0300 Subject: [PATCH] pthread: Fix pthread_rwlock_init return error The return should be positive like in other parts of pthread code --- libs/libc/pthread/pthread_rwlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libc/pthread/pthread_rwlock.c b/libs/libc/pthread/pthread_rwlock.c index d9e915bc59..69b474ac3c 100644 --- a/libs/libc/pthread/pthread_rwlock.c +++ b/libs/libc/pthread/pthread_rwlock.c @@ -55,7 +55,7 @@ int pthread_rwlock_init(FAR pthread_rwlock_t *lock, if (attr != NULL) { - return -ENOSYS; + return ENOSYS; } lock->num_readers = 0;