diff options
Diffstat (limited to 'lib/libthr/thread/thr_rwlockattr.c')
-rw-r--r-- | lib/libthr/thread/thr_rwlockattr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_rwlockattr.c b/lib/libthr/thread/thr_rwlockattr.c index edc87d2..5709ef6 100644 --- a/lib/libthr/thread/thr_rwlockattr.c +++ b/lib/libthr/thread/thr_rwlockattr.c @@ -103,8 +103,8 @@ _pthread_rwlockattr_setpshared(pthread_rwlockattr_t *rwlockattr, int pshared) int _pthread_rwlockattr_setkind_np(pthread_rwlockattr_t *attr, int kind) { - if (kind != PTHREAD_RWLOCK_PREFER_READER_NP || - kind != PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP || + if (kind != PTHREAD_RWLOCK_PREFER_READER_NP && + kind != PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP && kind != PTHREAD_RWLOCK_PREFER_WRITER_NP) { return (EINVAL); } |