summaryrefslogtreecommitdiffstats
path: root/lib/libc_r/uthread
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2002-02-14 15:20:36 +0000
committermaxim <maxim@FreeBSD.org>2002-02-14 15:20:36 +0000
commit7e5cf0fb30825cbeae3c1af4113d181c483c2e43 (patch)
tree58921148d337fe1069a9abd7f84524fe137a922c /lib/libc_r/uthread
parent09374cbc0ee1cca0d387ab3a0d358490b5371817 (diff)
downloadFreeBSD-src-7e5cf0fb30825cbeae3c1af4113d181c483c2e43.zip
FreeBSD-src-7e5cf0fb30825cbeae3c1af4113d181c483c2e43.tar.gz
Correct a typo pthread_attr_setscope() function fails unconditionally
due to. PR: misc/30699 Reviewed by: jasone, ru Approved by: jasone, ru MFC after: 1 week
Diffstat (limited to 'lib/libc_r/uthread')
-rw-r--r--lib/libc_r/uthread/uthread_attr_setscope.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc_r/uthread/uthread_attr_setscope.c b/lib/libc_r/uthread/uthread_attr_setscope.c
index 967cb39..3614615 100644
--- a/lib/libc_r/uthread/uthread_attr_setscope.c
+++ b/lib/libc_r/uthread/uthread_attr_setscope.c
@@ -46,7 +46,7 @@ _pthread_attr_setscope(pthread_attr_t *attr, int contentionscope)
/* Return an invalid argument: */
ret = EINVAL;
} else if ((contentionscope != PTHREAD_SCOPE_PROCESS) ||
- (contentionscope != PTHREAD_SCOPE_SYSTEM)) {
+ (contentionscope == PTHREAD_SCOPE_SYSTEM)) {
/* We don't support PTHREAD_SCOPE_SYSTEM. */
ret = ENOTSUP;
} else
OpenPOWER on IntegriCloud