s/||/&&
This commit is contained in:
parent
a6b9b59e04
commit
7047ff7588
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=214008
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user