diff options
-rw-r--r-- | lib/libc_r/uthread/uthread_attr_setscope.c | 2 | ||||
-rw-r--r-- | lib/libkse/thread/thr_attr_setscope.c | 2 | ||||
-rw-r--r-- | lib/libpthread/thread/thr_attr_setscope.c | 2 |
3 files changed, 3 insertions, 3 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 diff --git a/lib/libkse/thread/thr_attr_setscope.c b/lib/libkse/thread/thr_attr_setscope.c index 967cb39..3614615 100644 --- a/lib/libkse/thread/thr_attr_setscope.c +++ b/lib/libkse/thread/thr_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 diff --git a/lib/libpthread/thread/thr_attr_setscope.c b/lib/libpthread/thread/thr_attr_setscope.c index 967cb39..3614615 100644 --- a/lib/libpthread/thread/thr_attr_setscope.c +++ b/lib/libpthread/thread/thr_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 |