diff options
author | davidxu <davidxu@FreeBSD.org> | 2010-10-18 05:15:26 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2010-10-18 05:15:26 +0000 |
commit | a7a5cfca8201c9cfb1bf2ffc042d635268e82831 (patch) | |
tree | 7741211ba8352e35da3dcec73542fae99dad6b02 /lib | |
parent | c6d578b87099319f4889fc41a797c12394855e3c (diff) | |
download | FreeBSD-src-a7a5cfca8201c9cfb1bf2ffc042d635268e82831.zip FreeBSD-src-a7a5cfca8201c9cfb1bf2ffc042d635268e82831.tar.gz |
s/||/&&
Diffstat (limited to 'lib')
-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); } |