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
This commit is contained in:
parent
7a6051e857
commit
0878d2e5e9
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user